PDA

View Full Version : Scroll bar with two sliders?



Morea
7th April 2006, 21:05
Is it possible to create such a thing?
I wish to be able to set two values (one lower and one upper bound) with it.
I could use two scrollbars, but I'd rather use just one widget. Or is there any other widget that can do this?

jpn
8th April 2006, 10:29
I don't think there's such a widget which could do that out of the box.
I would either subclass QSlider and add a second handle somehow, or simply put two QSliders one on top of the other.
For the latter method, a custom style would be needed for the top most slider not to draw anything else than the handle.

georgie
9th May 2006, 07:25
Have you had any luck with this problem morea? Because I am looking to do the same thing....

Morea
9th May 2006, 07:51
No, I haven't tried yet.