Re: QwtPlotZoomer->setZoomBase
Hello,
I have a problem with QwtPlotZoomer. After i load data in the QwtPlot, i change the scales:
Code:
setAxisScale
(QwtPlot::yLeft,MinData,MaxData
);
replot();
Then, I try to change the "ZoomBase":
Code:
d_zoomer->setZoomBase(d_plot->canvas()->rect());
But it does not change according to the new scales. Please, tell me if i am using well the method "ZoomBase"
Thanks in advance!
I am using Qwt6.0rc5
Re: QwtPlotZoomer->setZoomBase
The rectangle is something in the coordinate system of the scales - not the geometry of the widget !
Instead do a "d_zoomer->setZoomBase( false );"
Re: QwtPlotZoomer->setZoomBase
I had the same problem, it resolved by using setZoomBase(false), but how i can return to the first canvas ?