Qt supports bridging between C++ classes with the QML engine. This combination allows developers to take advantage of both the simplicity of QML and the flexibility of C++. You can even integrate features that are not supported by Qt from an external library, then pass the resulting data to Qt Quick to be displayed in the UI. In this example, we will learn how to export our user interface components from QML to the C++ framework and manipulate their properties before displaying them on screen.
Integrating QML and C++
How to do it...
Let's go through the following steps:
- Once again, we will start everything from scratch. Therefore, create a new Qt Quick application – Empty project in Qt Creator and create MainForm...