[Qt-interest] qlcdnumber slider

Andre Somers andre at familiesomers.nl
Tue Aug 25 12:01:35 CEST 2009


Bob Alison wrote:
> Hi all,
>
> 1) i would appreciate if someone could explain
> how to change the colour of the number called
> by QLCDNumber,
Play around with QWidget::setPalette, for instance.
>
> 2) as well as how to change the style of a slider
> (class QSlider), for example, to change to
> Windows XP or Mac style ?
>
If style sheets are not enough for you, you could make a proxy QStyle 
that simply uses the available styles to do what you want, but use 
different styles for different things. That should work. I'm not sure if 
I'd like applications messing with my system styles, though.

André




More information about the Qt-interest-old mailing list