Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.3.1, 6.4.0 Beta3
-
None
-
My testing and bisecting was done on macOS / arm64.
Our use case in OBS (where we discovered this) shows that it also happens on Windows and Linux.
-
-
f11e5435c (dev), 2e898a6a5 (6.5), 0b2ca3ee3 (tqtc/lts-6.2), 51464de4a (6.4)
Description
It's possible to unselect an item in QListItemView in SingleSelection mode by clicking into the area of the item view without an item.
Bisecting the issue shows that it was introduced in dfb4697e, which was supposed to fix an issue where it was possible to unselect an item when control-dragging while it should only be possible to unselect an.
To reproduce, use the attached sample project. Select an item.
On current master, pressing the empty area below "Fifth item" will unselect the current item.
With dfb4697e reverted, clicking below the empty area leaves the selected item selected.
Intended.mov and Actual.mov show me clicking the cursor on the empty area.
Attachments
For Gerrit Dashboard: QTBUG-105870 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
459511,4 | QAbstractItemView: Don't unselect on click on empty area in SingleSelect | dev | qt/qtbase | Status: MERGED | +2 | 0 |
459901,2 | QAbstractItemView: Don't unselect on click on empty area in SingleSelect | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
459902,2 | QAbstractItemView: Don't unselect on click on empty area in SingleSelect | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
459903,2 | QAbstractItemView: Don't unselect on click on empty area in SingleSelect | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |