hi,

I need seperate scale widgets that zoom in and out according to the plots between them. Constructing them and getting the needed values is not the problem. But the only way to resize a QwtScaleWidget seems to be QwtScaleWidget::setScaleDiv(). So I construct a QwtLinearScaleEngine and via QwtLinearScaleEngine::divideScale(..) get a scaleDiv and put it into my scale widget.

First problem is that when I append a scaleDiv with the same values as the last one, I get an index out of range. But that can be avoided by checking the values first.

But the problem I can't solve is that if you change the values numerous times with QwtScaleWidget::setScaleDiv() it crashes with a stackoverflow.

Any suggestions? Or is there another way to scale a QwtScaleWidget?

Thanks!