Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.15.3
-
Fix Version/s: 6.2.0 Alpha
-
Component/s: Core: Item Models
-
Labels:None
-
Story Points:5
-
Commits:8278879c199ecc9b17a1fd603ecb4a31f5fd6c68 (qt/qtbase/dev)
-
Sprint:Qt6_Foundation_Sprint 33
Description
See reproducer in https://codereview.qt-project.org/c/qt/qtbase/+/346525
Having a QStandardItemModel and a QItemSelectionModel on top of it, removal of a row with selected entries does not always trigger a selectionChanged signal in the QItemSelectionModel.
The QItemSelectionModel subscribes to the rowsAboutToBeRemoved signal. On row removal, the signal is triggered. The signal handler is called. However, the signal handler QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved decides that the selection was not changed.