Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.14
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.