sliders.jpg

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