PDA

View Full Version : Icon Alignment



wirasto
17th October 2009, 15:50
How to set icon alignment in QPushButton and QToolButton to left or right ?

wysota
18th October 2009, 17:05
Did you try using stylesheets?

wirasto
18th October 2009, 18:49
Gosh, why I forget that part :D



setStyleSheet(
"QPushButton {"
"text-align:left;"
"}"
"QToolButton {"
"text-align:left;"
"}"
);


Work in QPushButton, but in QToolButton not :(