Hi,
I included QwtPlotMagnifier to my plot, but scrolling up on the mouse zooms out and scrolling down on the mouse zooms in. How do I switch these so that scrolling up zooms in?
Thank you,
-James
Hi,
I included QwtPlotMagnifier to my plot, but scrolling up on the mouse zooms out and scrolling down on the mouse zooms in. How do I switch these so that scrolling up zooms in?
Thank you,
-James
Didn't try it myself, but I guess the following might invert:
Qt Code:
virtual YourMagnifier::rescale(double factor) { if ( factor != 0.0 ) }To copy to clipboard, switch view to plain text mode
HTH,
Uwe
Hi Uwe,
Thanks for your solution, I can get by with this implementation in my program.
Just one problem though, now the zoom in/out with the keys are also inverted. I would also have to override setZoomInKey and setZoomOutKey right?
Anyways this will work fine for my application, thanks
Bookmarks