Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.4.1, 5.5.1, 5.6.0 Beta
-
Fix Version/s: 5.7.0 RC
-
Component/s: Widgets: Itemviews
-
Labels:None
-
Commits:6129aade0018437d8d65a0051040d7100c8ec681
Description
QAbstractItemView::setSelectionModel does not know to restore the connections created by QListWidgetPrivate::setup, so calling setSelectionModel on a QListWidget breaks the connections to QItemSelectionModel signals. Moving those connections from QListWidgetPrivate::setup to a new QListWidget::setSelectionModel override function fixes the problem. See attached modified files.
(See also http://forum.qt.io/topic/63674/qlistwidget-setselectionmodel-stops-emission-of-itemselectionchanged-signal.)
Attachments
For Gerrit Dashboard: QTBUG-50891 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
148554,5 | QListWidget: setup connections when changing selection model. | 5.7 | qt/qtbase | Status: MERGED | +2 | 0 |