Solved Change property in dynamicaly created object
-
Hello all,
I have some number of objects created from QML file (vobj.qml) like below:
Entity { .......... property bool active ......... }
then I have created component and some number of objects
var visComponent = Qt.createComponent(mainPath + "vobj.qml"); ....................... for (var i = 0; i < 5; i++) { visObject = visComponent.createObject(scene, {"active": false}) visObjects.push(visObject) }
How can I change an active property in all of these objects?
Thanks in advance -
-
Thanks a lot.
I did not think it was so easy
-
QML is easy. Enjoy programming in QML :)