PDA

View Full Version : Change last zoom view



Sangfeust
3rd February 2015, 16:11
Hello,

I make my own QwtPlot class, and I add a QwtPlotZoomer.

But when I attach curve and zoom out with right clic, I am not able to go to the right axis scale, I all the time have 0-1000 for xBottom and yLeft.

I try to set the zoomBase and to make a new QwtPlotZoomer after adding my curve but nothing works.

When I set the axisScale BEFORE adding zoom it works, but I am not able to know the scale at this time :s.

Any idea?

Thanks
Sangfeust

Sangfeust
4th February 2015, 16:41
Badly explained my question but I have found solution:

After attaching data and setting axis scale make all the time:
myPlot->myZoomer->setZoomBase();

Where myZoomer is QwtPlotZoomer you attach to the QwtPlot.