
Originally Posted by
Uwe
Guess you simply forgot to call replot() to make your changes happen. You can also enable the autoReplot flag, but this might lead to too many updates.
Uwe
Thanks a lot man...that replot() thing helped...
Can I ask you another question about that QwtPlotZoomer ?
I have reimplemented it as you advised me to:
connect(zoomToolButton, SIGNAL(toggled(bool)), SLOT(enableZoomMode(bool)));
void MainWindow::enableZoomMode(bool on)
{
dataPanner->setEnabled(on);
dataZoomer[0]->setEnabled(on);
dataZoomer[0]->setZoomBase();
dataZoomer[1]->setEnabled(on);
dataZoomer[1]->setZoomBase();
dataPicker->setEnabled(!on);
}
connect(zoomToolButton, SIGNAL(toggled(bool)), SLOT(enableZoomMode(bool)));
void MainWindow::enableZoomMode(bool on)
{
dataPanner->setEnabled(on);
dataZoomer[0]->setEnabled(on);
dataZoomer[0]->setZoomBase();
dataZoomer[1]->setEnabled(on);
dataZoomer[1]->setZoomBase();
dataPicker->setEnabled(!on);
}
To copy to clipboard, switch view to plain text mode
It works just fine...the only SIMPLE problem I suppose is that now when I do some zooming...and then when I toggle the button to "get out/cancel" the zooming the plot does not return to the original state as it was displayed before zooming...
Have any ideas ?
Thanks
Bookmarks