Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0
-
None
-
macOS & Qt 5.15
-
-
f9940b15f7f0fde731431626172939b9821fd660 (qt/qtbase/dev) a9f82b8b2c19ecc5bf5ab0d376780c34e8435202 (qt/qtbase/5.15)
Description
QPushButton with stylesheet neither can be pushed nor its clicked event is fired when it is clicked on macOS & Qt 5.15. This bug doesn't appear on Windows and Linux versions of Qt 5.15. Previous than 5.15 versions of Qt also don't have this bug.
To reproduce this bug:
- Create a new Qt Widgets Application Project on macOS version of Qt 5.15
- Add a push button to the main window
- Add qDebug()<<"pushed"; statement to its clicked() slot
- Add any stylesheet for QPushButton like below:
QPushButton { background-color: yellow }
or
QPushButton {border: 2px solid} - Run the application.
Attachments
Issue Links
- duplicates
-
QTBUG-84852 [Reg 5.14.2-5.15.0 ]Putting stylesheet breaks signal slot
- Closed
- resulted in
-
QTBUG-86587 QPushButton: styling causes clicked() signal not to emit when clicked
- Closed