Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.13
-
None
-
3ddffd2d8b619863930854705ca5577c0389d65f (qt/qtbase/dev) ab9f69445584d876d0a0dc3cf1d829fd275f199f (qt/qtbase/5.15)
Description
Since commit d0f909f, QTableView::sortByColumn() no longer calls sort() on the model if sortingEnabled is true, relying on setSortIndicator() to do the job. This has no effect if the column+order requested matches the current sort indicator, meaning that re-sorting after inserting/modifying model items no longer works. This apparently also breaks calling sortByColumn() for the first time after populating the model if sortingEnabled has already been set beforehand, which will be the case when using uic.
Attachments
For Gerrit Dashboard: QTBUG-86268 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
311986,2 | QTable/TreeView: fix sortByColumn() when view is already sorted | dev | qt/qtbase | Status: MERGED | +2 | 0 |
312325,2 | QTable/TreeView: fix sortByColumn() when view is already sorted | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |