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

Shortcut key sequence not shown in MenuItem

    XMLWordPrintable

Details

    • Windows

    Description

      It would be nice if QtQuick.Controls Menu had an option to show the shortcut key sequence for the Actions like the widget side menus do. E.g. if you define a Menu with an Action like this:

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
      
          menuBar: MenuBar {
              Menu {
                  id: fileMenu
                  title: "&Menu"
      
                  Action {
                      text: "Test"
                      shortcut: "Ctrl+T"
                      onTriggered: print("triggered")
                  }
              }
          }
      }
      

      the shortcut key sequence, Ctrl+T, would be shown:

      Attachments

        1. shortcut.png
          4 kB
          Titta Heikkala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tiheikka Titta Heikkala
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes