Details
-
Bug
-
Resolution: Cannot Reproduce
-
P4: Low
-
6.2.6
-
c39f407a5 (dev), ea28fc656 (6.5)
Description
Desktops typically have modal popups for combo boxes. Currently there is no modal flag for ComboBox exposed, which means that when a ComboBox is open and user wishes to dismiss it by clicking somewhere else on the window, it actually registers that as a click. So it could lead to unintended action being taken.
One could almost do it with popup.modal: true already though. Only issue is that combobox cannot be closed by clicking the combobox button itself while the popup is open.
import QtQuick import QtQuick.Controls ApplicationWindow { id: window width: 600 height: 400 visible: true ComboBox { model: 10 popup.modal: true popup.y: height } Switch { x: 200 y: 100 text: "I shouldn't respond to clicks when the popup is open" } }
Attachments
Issue Links
- relates to
-
QTBUG-130536 Disabled MenuItem propagates clicks to underlying mouse area in drawer
-
- Closed
-
- resulted in
-
QTBUG-113032 Support platform style hint "ReplayMousePressOutsidePopup"
-
- Reported
-
For Gerrit Dashboard: QTBUG-104323 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
472928,10 | Popup: respect ReplayMousePressOutsidePopup hint | dev | qt/qtdeclarative | Status: DEFERRED | 0 | 0 |
473281,5 | MenuBar: Clean up and stabilize test case | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
473285,5 | Improve containment mask logic and integrations with popups | dev | qt/qtdeclarative | Status: DEFERRED | -1 | 0 |
473286,5 | ComboBox: allow clicks on the combobox if the popup is modal | dev | qt/qtdeclarative | Status: DEFERRED | 0 | 0 |
473670,2 | MenuBar: Clean up and stabilize test case | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |