- Qt5 C++ GUI Programming Cookbook
- Lee Zhi Eng
- 55字
- 2021-07-02 12:17:56
Exposing the QML object pointer to C++
Sometimes, we want to modify the properties of a QML object through C++ scripting, such as changing the text of a label, hiding/showing the widget, or changing its size. Qt's QML engine allows you to register your QML objects to C++ types, which automatically exposes all its properties.