PDA

View Full Version : Dynamically change slider max range



Don_Hannes
3rd October 2012, 10:48
8273

I have two slider, A and B.

Would there be an easy way to set the max range for the slider B to be that of the current positions of slider A.

In other words, slider B should stop to where Slider A knob is at the moment.
Say that both slider have values from 0 to 10. In the image, slider A is at 7 and B at 0. What I want is that slider B knob stops at the position 7 (where slider A is currently).

I thought it would be as easy as to setMaximum on valueChanged, but that only affects on the actual values, not the width of the slider nor the max range of it.

Thanks

sonulohani
3rd October 2012, 13:35
See this example:- 8275

Don_Hannes
3rd October 2012, 17:19
See this example:- 8275

Great!

Just what I was looking for..

Rock.