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. sortChildren and getting column number of QTreeWidgetItem

sortChildren and getting column number of QTreeWidgetItem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 515 Views 2 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.
  • J Offline
    J Offline
    joeydonovan4
    wrote on last edited by
    #1

    Is there any way to get the column that the QTreeWidgetItem is in? I need to have this in order to use sortChildren which takes the column number as the first parameter. I am not hardcoding so I have to make this useful for any QTreeWidgetItem in any row at any given time.

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

      You got it backwards. There are no QTreeWidgetItems for each column.
      There's only one QTreeWidgetItem in a row and it holds data for every column.

      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