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

Shortcut syntax (&) for menus does not work

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes