Hi,
I am new to C++ and QT, I am trying to use qwt plot picker with invTrasform, but I cannot manage it. User draws a rectangular with the mouse on the plot and I try to get the actual x,y coordinates.

I created a plot picker:

Qt Code:
  1. picker = new PlotPicker(QwtPlot::xBottom, QwtPlot::yLeft,QwtPicker::RectRubberBand, QwtPicker::AlwaysOn, myPlot->canvas());
To copy to clipboard, switch view to plain text mode 

I am trying to get the coordinates from a QRect that the user draws with mouse

Qt Code:
  1. connect(continuum_picker, SIGNAL(selected(QRectF&)), this, SLOT(onContinuumAreaSelected(const QRectF&)));
To copy to clipboard, switch view to plain text mode 

Implementing the SLOT
Qt Code:
  1. void my2dPlot::onContinuumAreaSelected(const QRectF& selectedRect)
  2. {
  3. ...
  4. float w = QwtPlotPicker::invTransform(selectedRect.bottomRight()).x();
  5.  
  6. ....
  7. }
To copy to clipboard, switch view to plain text mode 
I get the error:
Qt Code:
  1. error: no matching function for call to 'PlotPicker::invTransform(QPointF)'
  2. candidates are: QRectF QwtPlotPicker::invTransform(const QRect&) const
  3. note: QPointF QwtPlotPicker::invTransform(const QPoint&) const
To copy to clipboard, switch view to plain text mode 

Any ideas?