Why don't you simply use a QwtPlotPanner instead of trying to mangle the zoomer code to do the same thing? The panner is designed to move the canvas around without changing the zoom level.
If you need to restrict the panning to one axis only, then you can derive from QwtPlotPanner and reimplement as required. I don't remember exactly which methods need to be changed, but it shouldn't be too hard to figure that out.




Reply With Quote

Bookmarks