[SOLVED] QwtPlotZoomer zoom out using QPushButtons?
-
wrote on 10 Apr 2012, 15:53 last edited by
Is is possible to zoom out after zooming in (any amount of stacks) to the stack index of 0 using a push button in a QwtPlotZoomer?
My layout has 2 push buttons, 1 push button that turns the zoomer on and off, then I have another push button that will zoom all the way out to its original state. I cant find a way to do this...my application is going to be used on a touch screen so I cannot use push events...
Any Qwt Guru's out there? Thanks!
-
wrote on 10 Apr 2012, 18:27 last edited by
@zoomer->zoom(0)@
should help! -
wrote on 10 Apr 2012, 18:55 last edited by
Thanks! I had actually figured out another way as well!
@
zoomer->setZoomStack(zoomer->zoomStack(), 0);
@My other issue was I was not initializing my stack after I set my data points
@
setZoomBase();
@
1/3