Hi,
I had included these 2 lines
m_zoomer->setEnabled(on);
m_zoomer->zoom(0);
m_zoomer->setEnabled(on);
m_zoomer->zoom(0);
To copy to clipboard, switch view to plain text mode
in my enableZoomMode(bool on) function
void my2dPlot::enableZoomMode(bool on)
{
myPlot->replot();//i am not sure if this is actually needed
m_zoomer->setZoomBase();
m_zoomer->setEnabled(on);
m_zoomer->zoom(0);
d_picker->setEnabled(!on);
}
void my2dPlot::enableZoomMode(bool on)
{
myPlot->replot();//i am not sure if this is actually needed
m_zoomer->setZoomBase();
m_zoomer->setEnabled(on);
m_zoomer->zoom(0);
d_picker->setEnabled(!on);
}
To copy to clipboard, switch view to plain text mode
And I managed to load plots,and then load other plots without having any problem with the axis. The problem as I mention above is that if I zoom in and press the zoom button off then I cannot zoom out again- i can only zoom further in.
If I remove this line:
m_zoomer->setZoomBase();
m_zoomer->setZoomBase();
To copy to clipboard, switch view to plain text mode
then whenever I push the button the plot will reset and this is not the actual purpose. The user must focus to select the exact area that s/he finds interesting. Perhaps the user wants to zoom in/out several times to get to the desired lever/area of zoom.
Is there a way to make the zoomer remember all the zoom steps so it can zoom/unzoom as much as the user wants at any part of the application?
PS:well, the documentation is good, but a few tutorials would make things grow and develop really faster!thanks anyway,after reading some tens of fora I find that you support qwt in an admirable manner.
Bookmarks