QwtPlotPicker picks points of whole canvas, but I need only the points on QwtPlotCurv
As I'm giving the canvas of the plot, it's taking the whole canvas for mouse tracking. But how do I set it to track/show only the points of the curve?
Code:
curve->setSamples(xValues, yValues, 11);
curve->attach(oParamGraph);
oParamGraph
->setAxisScaleDraw
(QwtPlot::xBottom,
new TimeScaleDraw
(cpuStat.
upTime()));
oParamGraph
->setAxisScale
(QwtPlot::xBottom,
0,
165,
15);
Thank you.
Re: QwtPlotPicker picks points of whole canvas, but I need only the points on QwtPlot
Overload QwtPolarPicker::trackerText and return QwtText(), when there is no point below a position. And no - QwtPolar doesn't offer an algo how to deceide this.
Uwe
Re: QwtPlotPicker picks points of whole canvas, but I need only the points on QwtPlot
I didn't understand the following line dude.
Quote:
Originally Posted by
Uwe
....., when there is no point below a position.
Can you pls give me an example how to write condition for this.
Thank you.