Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.0
Description
Using mnemonics, one can trigger an action, or a menu item by pressing Alt+shortcut letter
However, in the case of a checkable Action, the onTriggered handler is called, but the checked state remains the same.
import QtQuick 2.11 import QtQuick.Window 2.11 import QtQuick.Controls 2.4 ApplicationWindow { visible: true menuBar: MenuBar { Menu { title: "&File" MenuItem { text: "&Checkable" checked: true onCheckedChanged: { console.log("Checked changed:", checked) } onTriggered: { console.log("Triggered:", checked) } } Action { text: "Checkable &Action" checked: true checkable: true onCheckedChanged: { console.log("Checked changed:", checked) } onTriggered: { console.log("Triggered:", checked) } } } } }
Attachments
Issue Links
- relates to
-
QTBUG-69401 Menmonics do not work with checkable QtQuickControls 2 MenuItem
- Closed