Hi,

I need to select an area with a RubberBand that returns QRectF::top, QRectF::bottom, QRectF::left, QRectF::right. For this I do this:

Qt Code:
  1. QwtPlotZoomer* zoomer = new QwtPlotZoomer( canvas );
  2. zoomer->setRubberBandPen( QColor( Qt::red ) );
  3. zoomer->setTrackerPen( QColor( Qt::green ) );
  4. zoomer->setMousePattern( QwtEventPattern::MouseSelect2,
  5. Qt::RightButton, Qt::ControlModifier );
  6. zoomer->setMousePattern( QwtEventPattern::MouseSelect3,
  7. Qt::RightButton );
To copy to clipboard, switch view to plain text mode 

and by using zoomed (const QRectF &rect) signal, rect can be obtain.

Qt Code:
  1. connect(zoomer, zoomed (QRectF), this, slot_pos(QRectF));
  2.  
  3. void MyClass::slot_pos(QRectF pos)
  4. {
  5. qDebug() << pos.top << pos.bottom << pos.left << pos.right;
  6. }
To copy to clipboard, switch view to plain text mode 

now I have this problem:
Mouse LeftButton causes zooming. I want to to select an area with a RubberBand without zooming by for example LeftButton +ctrl.