Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.13.0
-
None
-
-
de26ea6a7ff921995b6229f1f683821adb95e973
Description
Due to the deprecation warning for sortByColumn(int column) i was shocked to notice that sortByColumn(-1, Qt::AscendingOrder) doesn’t restore the natural order of my model anymore – the call seems to be ignored completely.
While trying to workaround that, i noticed that setSortingEnabled(false); also doesn’t reset to an unsorted state either. However it disabled the sort indicators and seems to set setSectionsClickable(false) which prevents any QHeaderView::sectionClicked signals from getting triggered.
It continues to sort new data even when the complete model is reset.
I implemented this manually using QHeaderView::sortIndicatorChanged, which is completely broken and potentially unfixable now.
Attachments
Issue Links
- duplicates
-
QTBUG-77419 [Regression] QTreeView::sortByColumn(-1, Qt::AscendingOrder) is ignored
- Closed