Simple Calculator using Qt Qml. The project shows how registering a C++ type with QML can be done. QtQml supports 3 other different patterns for communicating between C++ and Qml, namely
- subclassing QQuickItem in C++ for creating a custom QML item
- Exposing a C++ Property to QML root
- Registering C++ Type to the QmlEngine
- accessing QML objects through the object tree
This calculator UI is inspired from the iOS fanous calculator design. Current the application only supports adding numbers. The other operations will be added at a later stage. Feel free to contribute, this project might involve some data structures, and design patterns for handling the operations. It can be a good opportunity to practice those.
- Install Qt. For instruction on how to install :
- Compile the project
qmake && make
- Launch the application
./Calculator