[Qt-interest] Styling slider via style sheets ( may be bug )
Scott Aron Bloom
Scott.Bloom at onshorecs.com
Wed Sep 29 16:45:57 CEST 2010
Why not use Qxt?
It's a great extension to Qt, is trivial to add on, and is very very
lightweight... You can pick and choose what you want from it (GUI and
core in your case)
Scott
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Wagner Sales
Sent: Wednesday, September 29, 2010 7:43 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Styling slider via style sheets ( may be bug )
Hi all,
This question aren't exactly about the QSlider class. Qt doesn't provide
a range slider ( an slider with to handles ), then other libraries
provides ( libqxt, CTK, and so on ). When I'm styling QSlider,
everything works fine. But, If I try to style one of theses classes, the
result aren't good. When the style are changing the groove and the
handle, no problems occurs. The problem will comes when you try to
change the add-page and sub-page. After take a look at the code and
asked about to qxt developers, I think the problem cannot be solved in
the class itself, because relies in the way Qt are drawing the
controls/subcontrols. In attachment, I put an style to test and a
screenshot with two sliders: common QSlider and a range slider. Since
I'm not able to change this, can anyone suggest a workaround?
Implement a proxy style? Re-implement the paintEvent on a sub-classed
range slider? Of course, this questions are because I'm not feeling
confortable in change Qt code itself.
Best Regards,
Wagner Sales
More information about the Qt-interest-old
mailing list