Reputation: 2462
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?
Upvotes: 2
Views: 1403
Reputation: 1766
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.
Upvotes: 2