Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.13.0
-
None
-
Reproduced on macOS (Qt 5.13.0 via Homebrew), Arch Linux (Qt 5.13.0 via package repositories)
-
-
de26ea6a7ff921995b6229f1f683821adb95e973 (qt/qtbase/5.13)
Description
Presumably since Qt 5.13.0, a QTreeView subclass that calls sortByColumn with -1 as parameter seems to have no effect. For some reason it now always adds a sorting indicator to the first column. This is a change in behavior compared to Qt 5.12.0 and before, previously it would maintain the natural sorting order.
The documentation explicitly permits -1 as column: https://doc.qt.io/qt-5/qtreeview.html#sortByColumn
The same application (Wireshark) has worked without issues before.
Most likely introduced via https://codereview.qt-project.org/c/qt/qtbase/+/243900
Downstream bug report: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15979
Attachments
Issue Links
- is duplicated by
-
QTBUG-78100 QTreeView::sortByColumn(-1) broken
- Closed