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

Qt Labs Platform MenuItem shortcut doesn't trigger

    XMLWordPrintable

    Details

      Description

      I tried using both StandardKey and a string sequence.

      import QtQuick 2.5
      import QtQuick.Controls 2.1
      import Qt.labs.platform 1.0
      
      ApplicationWindow {
          id: window
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          MenuBar {
              Menu {
                  title: qsTr("Format")
      
                  MenuItem {
                      text: qsTr("Bold")
                      shortcut: StandardKey.Bold
      //                shortcut: "Ctrl+B"
                      onTriggered: print("hello")
                  }
              }
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            mitch_curtis Mitch Curtis
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes