Hallo,
Though there's been post previously on more or less similar issue I can't figure out my problem. Any help would be great.

In my plot I could use zoom-in perfectly okay using left mouse button. But while using right-button to zoom out there is some problem.
Say, I zoom 2 times: org->stage 1->stage 2. Then on right click once it gets back to stage 1. But when I right click again the plot vanishes, and
the y-axis scale shows 0-1000. Irrespective of how many times it was zoomed, the last click (right) always shows the same (i.e no plot & 0-1000 scale).


Qt Code:
  1. class Zoomer: public QwtPlotZoomer
  2. {
  3. public:
  4. Zoomer( int xAxis, int yAxis, QWidget *canvas ):
  5. QwtPlotZoomer( xAxis, yAxis, canvas )
  6. {
  7. setRubberBandPen( QColor( Qt::darkGreen ) );
  8. setTrackerMode( QwtPlotPicker::AlwaysOn );
  9.  
  10. setMousePattern( QwtEventPattern::MouseSelect2,
  11. Qt::RightButton, Qt::ControlModifier );
  12. setMousePattern( QwtEventPattern::MouseSelect3,
  13. Qt::RightButton );
  14. }
  15. ...
  16. };
To copy to clipboard, switch view to plain text mode