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. Find special QTtreeWidgetItem if QTreeWidget has many items with this name

Find special QTtreeWidgetItem if QTreeWidget has many items with this name

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 292 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.
  • Please_Help_me_DP Offline
    Please_Help_me_DP Offline
    Please_Help_me_D
    wrote on last edited by
    #1

    Hi,

    Here on the picture I tried to describe my task.
    Let's suppose I have several QTreeWidgetItems in the same column. There are many roots and I need to retrieve a child. The problem is that there are possible many items with the name of the child that I'm looking for.
    Is there a known simple way to find a special item by the "full path" to this item? QTreeWidget::findItems(...) I think can't do that.
    1.png

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      No, you have to write something on your own by using findItems() and checking the parents.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Please_Help_me_DP 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        No, you have to write something on your own by using findItems() and checking the parents.

        Please_Help_me_DP Offline
        Please_Help_me_DP Offline
        Please_Help_me_D
        wrote on last edited by
        #3

        @Christian-Ehrlicher it is sad... But thank you!

        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