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?
Asked
Active
Viewed 1,298 times
1 Answers
2
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.

c_k
- 1,746
- 1
- 20
- 35
-
2Per a related discussion thread, I ended up overriding `zoom` with `QwtPlotZoomer::zoom(rect & zoomBase());` – Travis Christian Feb 28 '13 at 22:11
-
1perfect, maybe you can accept my answer, or add your own answer, so it is cleared up for others who might have the same question? – c_k Feb 28 '13 at 23:19