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. Children vs. resources
Forum Updated to NodeBB v4.3 + New Features

Children vs. resources

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.7k 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.
  • W Offline
    W Offline
    Wolf P.
    wrote on last edited by
    #1

    I have a question to the following

    bq. The children property contains the list of visual children of this item. The resources property contains non-visual resources that you want to reference by name.

    that I found (for example) in the reference for "QML Item element":http://doc-snapshot.qt-project.org/4.8/qml-item.html#children-prop

    What criterion determines in which of the lists an item appears? Is it the "visible property":http://doc-snapshot.qt-project.org/4.8/qml-item.html#visible-prop ?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vulee
      wrote on last edited by
      #2

      According to the document "All visual items in Qt Declarative inherit from Item". I would think that items which inherit directly or indirectly from the Item Element are visual children. Since Timer and Connections are not inherited from Item, they are non-visual.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Wolf P.
        wrote on last edited by
        #3

        Ah thanks. I understood it as "all items inherit from Item" that is, I seemingly overlooked the word "visual".

        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