How to Create C++ Objects Dynamically.
-
wrote on 3 Apr 2013, 12:46 last edited by
Hi, I'm a relative beginner with Qt Creator, and have some experience with C++ but I'm new to QML.
I've been going through the following Dynamic Scene Example:http://qt-project.org/doc/qt-4.8/declarative-toys-dynamicscene.html
I follow how the objects are created dynamically using QML. I want to know is it possible to create
similar objects dynamically using C++ funtions in Qt Creator, as I cant seem to find any examples
of this.My goal is to extend QML using C++.
ie. C++ functions -> QML properties.Thank you.
-
wrote on 3 Apr 2013, 15:03 last edited by
Is it that what you are searching for? "Using QML Bindings in C++ Applications":http://qt-project.org/doc/qt-4.8/qtbinding.html
-
wrote on 3 Apr 2013, 15:16 last edited by
Thanks for the reply.
I had spotted this tutorial also but unfortunately it does not create objects that can be open, closed, attached etc. it only creates static objects. I cant seem to find examples on qt-project.org so I was hoping to find some elsewhere.
1/3