Qml Qt Signal and slots
-
Hi,
I want to populate the Qml combobx data in Cpp file . So anyone please tell me how to do ?
Thanks
-
Have you looked "this doc":http://qt-project.org/doc/qt-5/qtqml-cppintegration-topic.html
-
Thanks ,
can you please give an example code like how can i add elemets to the ComboBox of Qml from C++ . So that i can ... -
Hi, you could use a c++ model, e.g. "QAbstractListModel":http://qt-project.org/doc/qt-5/qabstractlistmodel.html and use that as a model for you ComboBox in QML if you really need to access the model form C++.
If you can you should prefer to define the model in QML, that is much easier in my opinion :)