Use html on QPushButton
Unsolved
General and Desktop
-
pix1PushButton = new QPushButton("<h2><i>Load</i><font color=red>System</font></h2>"); piix2Label = new QLabel("<img src=:/images/load.png width=50 height=50><h2><font color=red>Load</font></h2>");
The has same html code,but ....
Can't use html on QPushButton or there is some wrong?
-
@qazaq408 said in Use html on QPushButton:
Can't use html on QPushButton or there is some wrong?
QPushButton does not support rich text natively. There are a few ways you can add rich text: https://stackoverflow.com/questions/2990060/qt-qpushbutton-text-formatting