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

Shortcut key sequence not shown in MenuItem

XMLWordPrintable

    • Windows

      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:

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

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

              Created:
              Updated:

                There are no open Gerrit changes