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

Сannot disable shortcut for MenuItem from Qt.labs.platform

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      Shortcut at MenuItem(Qt.labs.platform) continues to be triggered when the enabled field is set to false

      import Qt.labs.platform 1.1 as Labs
      
      Labs.Menu {
          id: editMenu
      
          Labs.MenuItem {
              id: copyAction
              shortcut: StandardKey.Copy
              enabled: false
              onTriggered: console.log("onTriggered")
          }
      }
      

       

      An example with a bug reproduction was attached

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-100121
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              redandropulus a d
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes