Question

I have a QwtPlot with a QwtPlotZoomer that sets its zoom base to some arbitrary size. How can I then prevent the user from zooming out beyond that window?

Was it helpful?

Solution

I don't know if this is possible using the API. However, in Qwt it is quite easy to extend QwtPlotZoomer by inheritance. Look in the originial code how zooming is handled and implement your own constraint(s) in the overriden methods.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top