Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.1, 4.8.x, 5.0.0, 5.2.0
-
Windows XP, Qt Creator 1.3.1, Qt devt. env. 2010.01
Ubuntu 12.04 64-bit
-
4.8: 65656e03896d12c6dbc37a2ae7d30ec257c26092 5.3: 9ad768fd1999780df18551151b9d9fa9c354131c
Description
When I define a style sheet that modifies the font style in checked state (but also in other states) it does not display the text in the selected style.
I have defined a style that tries to draw the text in bold when the button is in checked state.
QPushButton:checked
I have tried various style sheets e.g. font: bold or font: 30px
Setting the color to some other value works, e.g. color: red
Attached an example application that shows the problem. When clicking on the checkable button, the text becomes red, but not bold.
Setting another button to bold works, just not in the checked state.
Attachments
Issue Links
- relates to
-
QTBUG-67740 QPushButton, On :hover the text-decoration: underline. Underline is obfuscated by all non-transparent background colors.
- Reported