Travis
Travis

Reputation: 2462

How do I limit the maximum range that a QwtPlot can be zoomed out to?

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

Answers (1)

c_k
c_k

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

Related Questions