Replot in Qwt Zoomer(QWT)
-
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():
!http://hostingkartinok.com/image/01201109/ad7ef8fd02ec69e63af550639901254b.png(1)!
But if i pressed right mouse button or select some areas and back to start area by right mouse button, i get that:
!http://hostingkartinok.com/image/01201109/7e25e354962e7dcde809012a402ef24e.png(2)!
I try use it:
@zoomer->setZoomBase(this->rect());@
@plot->setAutoReplot(true);@
But nothing is working
In advance many thanks for your help![edit : fixed typo in title, Eddy]