Hi,
this may sound strange, but I have a use case where one can set the range of a QwtSlider i.e. to (50.0, 50.0). This is meant to nail a variable to a fixed value.
As far as I understood the code, QwtAbstractScale::rescale() is called when borders are set and if upperBorder == lowerBorder, it seems the value is set to 0. My first idea was to reimplement QwtAbstractScale::rescale(), but this function isn't virtual. The drawing part is not important in my case, I do not use drawn scales.
Did I understand anything wrong or is there a way to get around this behaviour? Or do I have to build some wrapper around QwtSlider to catch this case?
Thanks in advance,
Carsten
Bookmarks