ruzik
16th September 2011, 18:16
Hellow!, i have this code:
QwtPlotZoomer* zoomer = new QwtPlotZoomer( canvas(),true);
zoomer->setRubberBandPen( QColor( Qt::black ) );
zoomer->setTrackerPen( QColor( Qt::black ) );
zoomer->setMousePattern( QwtEventPattern::MouseSelect2,
Qt::RightButton, Qt::ControlModifier );
zoomer->setMousePattern( QwtEventPattern::MouseSelect3,
Qt::RightButton );
this->setAutoReplot(true);
replot();
In first i have this, because i called replot():
6863
But if i pressed right mouse button or select some areas and back to start area by right mouse button, i get that:
6864
I try use it:
zoomer->setZoomBase(this->rect());
plot->setAutoReplot(true);
connect(zoomer, SIGNAL(zoomed(const QRectF&)), this, SLOT(replot()));
But nothing is working
In advance many thanks for your help!
QwtPlotZoomer* zoomer = new QwtPlotZoomer( canvas(),true);
zoomer->setRubberBandPen( QColor( Qt::black ) );
zoomer->setTrackerPen( QColor( Qt::black ) );
zoomer->setMousePattern( QwtEventPattern::MouseSelect2,
Qt::RightButton, Qt::ControlModifier );
zoomer->setMousePattern( QwtEventPattern::MouseSelect3,
Qt::RightButton );
this->setAutoReplot(true);
replot();
In first i have this, because i called replot():
6863
But if i pressed right mouse button or select some areas and back to start area by right mouse button, i get that:
6864
I try use it:
zoomer->setZoomBase(this->rect());
plot->setAutoReplot(true);
connect(zoomer, SIGNAL(zoomed(const QRectF&)), this, SLOT(replot()));
But nothing is working
In advance many thanks for your help!