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

Darryl Campbell dutter at gmail.com
Fri Feb 19 17:04:29 CET 2010


Hi Stephen,
    Check here:
http://doc.trolltech.com/4.6/stylesheet-examples.html#customizing-qpushbutton

-Darryl

On Fri, Feb 19, 2010 at 11:02 AM, Stephen Collyer <scollyer at netspinner.co.uk
> wrote:

>
>
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100219/bd52465f/attachment.html 


More information about the Qt-interest-old mailing list