[Qt-interest] QSlider paint event: drawing the handle
eric.kort at exsilico.com
eric.kort at exsilico.com
Fri Jun 10 23:07:17 CEST 2011
I am creating a custom widget to implement a double slider (or range slider). In my paint event, I can do this:
style()->drawComplexControl(QStyle::CC_Slider, &option, &painter, this);
Which is fine, but then I need to paint the second slider handle. However, I can not find any method within QStyle (or anywhere else) that will paint just the slider handle primitive. Obviously, I can draw one myself within the paint event, but this will not match QStyle::CC_Slider's handle in a platform independent fashion (since the appearance of the handle varies from platform to platform, as do many other details of the slider).
Is there a way to call the platform specific slider handle painter?
Thanks,
Eric
More information about the Qt-interest-old
mailing list