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

Shortcut syntax (&) for menus does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.0 RC
    • 5.4.0 Alpha
    • Quick: Controls 1
    • None
    • Windows
    • 55e04131acc679115df2815d7573015a9385a9ac

      Shortcut syntaxt (&) for menus does not work

      I tried this:

          menuBar: MenuBar {
              Menu {
                  title: qsTr("&File")
                  MenuItem {
                      text: qsTr("&Open")
                      onTriggered: console.log("Open action triggered");
                  }
                  MenuItem {
                      text: qsTr("E&xit")
                      onTriggered: Qt.quit();
                  }
              }
          }
      

      But the shortcuts defined by '&' do not work.

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

            Unassigned Unassigned
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes