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

Stephen Collyer scollyer at netspinner.co.uk
Fri Feb 19 17:16:28 CET 2010


On 19 February 2010 15:49, Stephen Collyer <scollyer at netspinner.co.uk>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 ?
>

Found it: { color: white} or whatever.

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


More information about the Qt-interest-old mailing list