i edite my code and i was able to see the rect on my plot, but when i finisd the rect disappear , i would like to keep it shown and have access to its valus(points)

Qt Code:
  1. picker = new QwtPlotPicker(QwtPlot::xBottom,QwtPlot::yLeft,this->canvas());
  2. // picker->setStateMachine(new QwtPickerTrackerMachine);
  3. picker->setStateMachine(new QwtPickerClickRectMachine);
  4. picker->setTrackerMode(QwtPicker::ActiveOnly);
  5. picker->setTrackerPen(QColor(Qt::white));
  6.  
  7. picker->setRubberBand(QwtPicker::RectRubberBand);
  8. picker->setRubberBandPen(QColor(Qt::green));
To copy to clipboard, switch view to plain text mode