Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.1
-
-
757a9c21c18faad5573308d8dd85428a4519ac7d (qt/qtbase/dev) 54af42818064e041859aa690a30a88c9b0729d7a (qt/qtbase/5.15)
Description
This issue occurred after upgrading from Qt 5.14.2 to 5.15.1.
When you have a QPushButton and add a stylesheet which sets the "padding" property, the clicked() signal is not fired when you click on the padded part of the button. In my case, you need to click almost the exact center of the button for it to work.
Steps to reproduce:
- Create a new Qt Widgets Application
- Add a QPushButton to the MainWindow form
- Set the following stylesheet on the QPushButton:
padding: 15px;
- Click the edges of the button to see the clicked() signal not being emitted.
Attachments
Issue Links
- duplicates
-
QTBUG-88397 Regression: Push buttons with CSS "padding" property not properly clickable
- Closed
- is blocked by
-
QTBUG-88276 Dead area because of "padding" applied through a stylesheet on a QPushButton
- Reported
- is duplicated by
-
QTBUG-87845 click in padding area doesn't trigger clicked() signal in QPushButton
- Closed
-
PYSIDE-1414 Button Click Problems With Version 5.15.1
- Closed
- resulted from
-
QTBUG-84852 [Reg 5.14.2-5.15.0 ]Putting stylesheet breaks signal slot
- Closed
-
QTBUG-84879 QPushButton with stylesheet cannot be pushed when it is clicked on macOS & Qt 5.15
- Closed