Important: Please read the Qt Code of Conduct -

get list obj and property after creation with Qt.createComponent

  • I create components with javascript Qt.createComponent() with different objname for every obj into a parent, for example:

         Rectangle {
            id: idRectArea

    after their creation I would like to know all the objects created within it to act on their properties including destruction.

    1. How do I retrieve the list of objects, dynamically created, present in a specific QML file? in javascript or C ++ or both ways? Examples?

    2. if I create component inside (button.qml) of a, for example, main.qml, how can I act on the properties of the component created by main.qml? How can I read one of its properties from main.qml?

    Thanks in advance

  • This post is deleted!

Log in to reply