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

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

XMLWordPrintable

    • Linux/X11, Windows

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes