[Qt-interest] QPushButton: change font colour via style sheet ?

Stephen Collyer scollyer at netspinner.co.uk
Fri Feb 19 17:02:04 CET 2010


On 19 February 2010 15:55, Andre Somers <andre at familiesomers.nl> wrote:

> Stephen Collyer wrote:
> > I have a QPushButton displaying a QString
> >
> > QString number = ...
> > QPushButton* play_button = new QPushButton(number);
> >
> > I want to change the colour of the font used to display the number
> > string by
> > setting the style sheet for the QPushButton.
> >
> > Is this possible ?
> Yes, it is.
>
> André
>

Touché. :-)

And for extra bonus points: any chance of an example ?

-- 
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100219/c7da1102/attachment.html 


More information about the Qt-interest-old mailing list