[Qt-interest] Styling slider via style sheets ( may be bug )
Wagner Sales
wsales at gmail.com
Wed Sep 29 16:43:11 CEST 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erro_slider.png
Type: image/png
Size: 7301 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100929/ace8457a/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slider.qss
Type: application/octet-stream
Size: 1133 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100929/ace8457a/attachment.obj
More information about the Qt-interest-old
mailing list