QwtKnob with only one possible value
Hi everyone !
I have some trouble on setting up a knob with only one value possible.
My knob represent some enumerate and let user choose a value.
An enumerate can be composed of only one field value.
In this case i can't manage to display my knob with a scale from 0 to 0.
Is this a bug (fixed?) or is it a normal behavior?
thanks a lot for your time.
Re: QwtKnob with only one possible value
Nobodies?
I've tried this in an empty project, same behavior.
Seems we can't do this with QwtKnob
Re: QwtKnob with only one possible value
A scale with a range of 0 is somehow useless, but nevertheless you could try:
Code:
sd.
setTicks( QwtScaleDiv::MajorTick, QList<double>
() <<
0.0 );
knob->setScale( sd );
Uwe