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