QwtPlotPicker trackerText not drawing
Brought to you by:
rathmann
|
From: Younes K. <kha...@gm...> - 2019-02-07 13:40:03
|
Hello,
I am trying to draw a rubberband when the user click on some area on the
plot.
I created my custom class that derives from qwtplotpicker and overloaded
trackertext method.
I initialize the picker like this:
pickerPAM_Mx = new customPlotPicker(ui->qwtPlotMxPAM->canvas());
pickerPAM_Mx->setStateMachine(new QwtPickerClickPointMachine());
pickerPAM_Mx->setRubberBandPen( QColor( Qt::red ) );
pickerPAM_Mx->setTrackerPen(QColor( Qt::red ));
pickerPAM_Mx->setTrackerMode(QwtPicker::ActiveOnly);
pickerPAM_Mx->setRubberBand( QwtPicker::RectRubberBand );
TrackerText is actually called when I click on some point on the plot,
but nothings shows up, no rubberband.
Am I doing something wrong ?
Best
--
Younes Khadraoui, PhD
*Co-Founder at Ostadhi.com | Research Engineer | Data Scientist |
Enterpreneur*
|