sortChildren and getting column number of QTreeWidgetItem



  • 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.


  • Moderators

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.