Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9
-
None
-
70c61b12e (dev), 019feea9b (6.9)
Description
It should be possible to use ContextMenu on a Pane:
import QtQuick import QtQuick.Controls.Basic ApplicationWindow { id: window width: 600 height: 400 visible: true Pane { anchors.fill: parent anchors.margins: 20 ContextMenu.menu: Menu { MenuItem { text: qsTr("Eat tomato") } MenuItem { text: qsTr("Throw tomato") } MenuItem { text: qsTr("Squash tomato") } } } }
This worked until https://codereview.qt-project.org/c/qt/qtbase/+/555514/11..12/src/gui/kernel/qwindow.cpp, which stopped the context menu event from being unconditionally sent. Since Pane accepts mouse events, it never gets sent the ContextMenu event.
Attachments
Issue Links
- relates to
-
QTBUG-67331 Make it possible to react to context menu events
- Closed
For Gerrit Dashboard: QTBUG-132073 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
610277,7 | ContextMenu: add more data rows to customContextMenu auto test | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |