[Qt-interest] QSlider modification
Andre Somers
andre at familiesomers.nl
Tue Jan 26 18:10:46 CET 2010
Hi,
I am running into a little problem.
I am trying to create an application where I have a set of sliders.
These sliders are interdependent. The total value of all the sliders is
bound to a maximum. That means that once that maximum is reached, one of
the sliders first has to be moved down before any of the others can be
moved up further.
At first, i thought I could do that by just setting the maximum value,
but that would of course result in a very weird UI. The sliders would
rescale, and that is not what I want. I want to sliders to express the
relative values, and so I need them all with the same scale. Still, I do
want to block them move beyond a certain threshold value, that may
change during operation.
Can anyone suggest an approach for this? I fear I'm looking at a
potentially quite nasty subclassing of QSlider or reimplemeting of it
using QStyle, but perhaps someone can suggest a clever shortcut?
André
More information about the Qt-interest-old
mailing list