Is it possible to format QToolButton
text with HTML like in QLabel
? toolbutton.SetText("Text <b>Test</b>")
doesn't work
Asked
Active
Viewed 614 times
1 Answers
2
I don't think this is possible without subclassing QToolButton
and overriding the paintEvent
, but if you just want to style the text in the button, you can use Qt Style Sheets like this:
toolButton->setStyleSheet("font-weight: bold");

mutil
- 3,205
- 1
- 27
- 34