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)
// picker->setStateMachine(new QwtPickerTrackerMachine);
picker
->setTrackerMode
(QwtPicker::ActiveOnly);
picker
->setTrackerPen
(QColor(Qt
::white));
picker
->setRubberBand
(QwtPicker::RectRubberBand);
picker
->setRubberBandPen
(QColor(Qt
::green));
picker = new QwtPlotPicker(QwtPlot::xBottom,QwtPlot::yLeft,this->canvas());
// picker->setStateMachine(new QwtPickerTrackerMachine);
picker->setStateMachine(new QwtPickerClickRectMachine);
picker->setTrackerMode(QwtPicker::ActiveOnly);
picker->setTrackerPen(QColor(Qt::white));
picker->setRubberBand(QwtPicker::RectRubberBand);
picker->setRubberBandPen(QColor(Qt::green));
To copy to clipboard, switch view to plain text mode
Bookmarks