Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
sortChildren and getting column number of QTreeWidgetItem
joeydonovan4 last edited by
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.