Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107703

QML MenuBar : "Alt" does not activate/focus the first Menu

    XMLWordPrintable

Details

    • Windows
    • 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"); }
              ...
            }
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes