
How to Integrate C++ and QML? − Register C++ enum to QML
We continue our series of blog posts about integrating C++ and QML. Last time we covered registering C++ types as singletons in QML. Today we will proceed with another frequently used technique in Qt software development ― utilizing C++ enums in QML code. In this article we continue using the most recent method of integrating C++ code and QML ― CMake command qt_add_qml_module().