QWTPlotZoomer zoom in-out signal
Solved
3rd Party Software
-
-
@jsulm
connect(zoomer, &QwtPlotZoomer::zoomed, [=](const QRectF& rect){
qDebug() << "Zoomed:" << rect;if (zoomer->zoomRectIndex() ==0 ) { qDebug() << "Max stack depth reached. Resetting to initial state."; // İlk haline geri dön zoomer->setZoomBase(); }
});
The chart auto-scales before zooming in and everything works normally. When setzoombase is used, it zooms out to the setAxisScale values I used when I created the chart. How can I solve this?
-
@jsulm
connect(zoomer, &QwtPlotZoomer::zoomed, [=](const QRectF& rect){
qDebug() << "Zoomed:" << rect;if (zoomer->zoomRectIndex() ==0 ) { qDebug() << "Max stack depth reached. Resetting to initial state."; // İlk haline geri dön zoomer->setZoomBase(); }
});
The chart auto-scales before zooming in and everything works normally. When setzoombase is used, it zooms out to the setAxisScale values I used when I created the chart. How can I solve this?
@horizonQt I solve it. setAxisAutoScale worked for me
-