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

Alt shortcuts for buttons ignore disabled state

    XMLWordPrintable

Details

    • Windows

    Description

      When creating a QPushButton with a shortcut by adding & to the button text on creation, using the shortcut seems to check if the button is active only when the shortcut is pressed.

      If the button is disabled very quickly after the shortcut is pressed, the clicked() signal is still emitted by the button which can cause situations where a slot receives the signal from a button that is currently disabled.

      See the attached file for a reproducing example.

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            kevin.zhang Kevin Zhang
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes