Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. getting children's id
QtWS25 Last Chance

getting children's id

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 646 Views
  • 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.
  • M Offline
    M Offline
    monkey buisness
    wrote on last edited by
    #1

    If i am at the QTreeWidgetItem object, how can i get its children (in terms of an id) that i can run functions on the children id?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi, welcome to devnet.

      What kind of id do you mean?
      You can get all children of a QTreeWidgetItem via childCount() and child(int index).

      M 1 Reply Last reply
      1
      • Chris KawaC Chris Kawa

        Hi, welcome to devnet.

        What kind of id do you mean?
        You can get all children of a QTreeWidgetItem via childCount() and child(int index).

        M Offline
        M Offline
        monkey buisness
        wrote on last edited by
        #3

        @Chris-Kawa

        thank you. Just getting started on this.

        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