Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. get list obj and property after creation with Qt.createComponent
Forum Updated to NodeBB v4.3 + New Features

get list obj and property after creation with Qt.createComponent

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 363 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • elicatE Offline
    elicatE Offline
    elicat
    wrote on last edited by
    #1

    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

    Saluti, Gianfranco Elicat

    1 Reply Last reply
    0
    • SeDiS Offline
      SeDiS Offline
      SeDi
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved