Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] How to customize sorting (implement custom sorting rules) for QTreeView?
-
-I'm refactoring my application to replace QTreeWidget with QTreeView, and I can't find how to customize sorting. Previously I've had my own QTreeWidgetItem subclass which had operator<. How to achieve the same with QTreeView?-
Apparently, sorting is done with the help of "QSortFilterProxyModel":http://qt-project.org/doc/qt-4.8/qsortfilterproxymodel.html