Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, June 2007
Using StyleSheets with QPushButton


Message 1 in thread

 Hi!

Did anyone manage to use the new StyleSheet feature on a QPushButton to al=
ign both text and image on the button=3F

I'm quite sure that it's possible but my search in the help wasn't success=
ful :/

thanks in advance for your hints

and

regards,

Stephan

Message 2 in thread

Stephan Stapel wrote:
> Hi!
> 
> Did anyone manage to use the new StyleSheet feature on a QPushButton to al=
> ign both text and image on the button=3F
> 
> I'm quite sure that it's possible but my search in the help wasn't success=
> ful :/
> 

Look for the text-align property 
http://doc.trolltech.com/4.3-snapshot/stylesheet-reference.html#list-of-properties. 
Unfortunately, due to a bug, the property does not work in 4.3.0. This 
was however fixed in the 4.3 snapshots a week or so ago.

Girish

--
 [ signature omitted ]