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

Shortcuts on QML Button triggers even if button is disabled

    XMLWordPrintable

Details

    • 1c6a510c16b35c937af202f517604620b4a97ff0

    Description

      Using this example (run via qmlscene):

      import QtQuick 2.0
      import QtQuick.Controls 1.4
      
      Item {
          Button {
              text: "&Hi"
              enabled: false
              onClicked: console.log("HI")
          }
      }
      

      and hitting "alt + h" on the keyboard will trigger onClicked of the Button. IMO the shortcut should respect the enabled/disabled state like in QPushButton.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            apollo13 Florian Apolloner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes