# QExpression **Repository Path**: petric/QExpression ## Basic Information - **Project Name**: QExpression - **Description**: git from github.com - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-16 - **Last Updated**: 2025-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/Solant/QExpression.svg?branch=master)](https://travis-ci.org/Solant/QExpression) # QExpression Simple expression evaluator for Qt framework with customizable operators.
You need something to evaluate expression and because of reasons you don't use QJSEngine or other similar thing? You came to the right neighborhood! ### Example usage ```cpp #include "qexpression.cpp" QExpression e("3 + 4 * 2 / (1 - 5)^2"); e.eval(); double result = e.result();//3.5 ``` ### Building * To run tests run `qmake` and then `make`. * To use QExpression just copy `qexpression.cpp` and `qexpression.h` to your project. ## Usage ### Operators You can define your own operators and functions, or change existing ones in `OperatorList` constructor in `qexpression.cpp` file. Examples included.