Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.1
Description
Selecting (by clicking) an Action from a Menu propagates the mouse event to the underlying MouseArea when popupType is Window. If the popupType is Item the event is not propagated. Propagating the events causes issues with the underlaying MouseArea.
The following code snippet can be used to reproduce the issue:
import QtQuick import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Test Menu") MouseArea { anchors.fill: parent onClicked: console.log("Mouse click:", mouseX, mouseY) } MenuBar { id: menuBar Menu { id: fileMenu title: "&File" popupType: Popup.Window Action { text: "New" shortcut: StandardKey.New onTriggered: console.log("New Action") } } } }
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-133378 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
623393,3 | Use actual popup window for enabling mouse grabbing | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |