Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.11.1
Description
If a QtQuickControls 2 MenuItem has a mnemonic, using that mnemonic does not change its checked state. The bug can be reproduced with the following code. Triggering the menu item with the mouse changes the checked state. Triggering it by pressing Alt-O, Alt-I does not change the checked state.
import QtQuick.Controls 2.2 ApplicationWindow { property bool flag width: 400; height: 400 visible: true Button { text: "&Open menu" onClicked: menu.open() Menu { id: menu MenuItem { text: "&Item" checkable: true checked: flag onTriggered: { flag = checked console.log("flag=", flag) } } } } }
Attachments
Issue Links
- relates to
-
QTBUG-69312 Triggering a checkable Action through mnemonics (& before letter) do not toggle its checked state
- Reported