Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.10, 6.3.2, 6.4.0
-
-
a667a9c235 (qt/qtdeclarative/dev) a667a9c235 (qt/tqtc-qtdeclarative/dev)
Description
QMenuBar reacts to Alt and activates/focuses the first QMenu.
This behavior can be observed from https://doc.qt.io/qt-6.2/qtwidgets-mainwindows-application-example.html
However, QML MenuBar does not react to "Alt".
Note that "Alt" + other key ( e.g. Alt + F ) does reacts in Menu.
Sample project is QTBUG107703-MenuBar.zip
The code is as simple as this.
MenuBar { Menu { title: qsTr("&File") MenuItem { id: openItem; text: qsTr("Open..."); } ... MenuItem { id: quitItem; text: qsTr("Quit"); } } Menu { title: qsTr("&Edit") MenuItem { id: copyItem; text: qsTr("Copy"); } MenuItem { id: selectAllItem; text: qsTr("Select All"); } ... } } }