Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.10
-
None
Description
To reproduce:
- Open e.g. texteditor example
- Right click; our text editing context menu will be shown, but once it's closed, another native one will still be visible
Windows isn't affected as it opens context menus on release.
The workaround is to only open context menus on press on non-Windows systems:
TapHandler {
acceptedButtons: Qt.RightButton
onPressedChanged: {
if (pressed)
contextMenu.popup()
}
}
However, this should be refined to respect the platform's press vs release policy: https://doc.qt.io/qt-6/qstylehints.html#contextMenuTrigger-prop
Attachments
Issue Links
- resulted from
-
QTBUG-35598 QtQuick Controls TextField and TextArea miss mouse context menu
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-134903 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
632999,4 | TextEditor example: add actions to built-in context menu, remove custom menu | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |
634345,4 | Close all other Menus when showing non-sub-menu | dev | qt/qtdeclarative | Status: NEW | 0 | +1 |