Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.4.3
-
None
-
6420f43f30e2d5cf7ae74702f96c176d7bf22a84
Description
With a QTableView, setting SortingEnabled to true, followed by
setHorizontalHeader(...) leads to SortingEnabled to still be set to true, but it is not able to be sorted.
QTableView::setHorizontalHeader() connects various signals from the new header (sectionResized(), sectionMoved() etc.) to internal slots but does not connect QHeaderView::sortIndicatorChanged() to QTableView::sortByColumn() if sorting has been enabled on the table view earlier by calling setSortingEnabled(true). This has the effect of breaking sorting in the table.
Attachments
Issue Links
- resulted from
-
QTBUG-3140 We should support keeping previous settings when setModel for QAbstarctItemView
-
- Closed
-