PDA

View Full Version : Multiple styles for sliders



Lele
27th October 2006, 15:17
Hi,
I subclassed QStyle in order to have my own custom slider, now I'd like to have different custom sliders in my application, how can I do that?
I was trying QStylePainter but without success.
thanks
Bye

jpn
27th October 2006, 15:26
So you have set the custom style for the whole application by QApplication::setStyle()? You can set the different styles for individual widgets by QWidget::setStyle().

wysota
27th October 2006, 16:08
If you are using Qt4.2, then maybe stylesheets (http://doc.trolltech.com/4.2/stylesheets.html) are a solution for you.