PDA

View Full Version : How to check if a QwtMarker is currently inside an QwtSymbol (Ellipse)?



bmn
23rd October 2015, 15:29
The markers on my plot are constantly moving, and I want only the markers in the symbol to show (I would just detach them temporarily from the plot).

Problem is, the Symbol uses QSize (I guess this is in pixels), and my points have their X/Y coordinates. So if I'm not wrong the only thing I know about my ellipse is it's center and size in pixel.

Any Ideas how to solve this?

Uwe
26th October 2015, 06:36
You can use QwtPlot::canvasMap() to convert between plot and widget coordinates.

Uwe

bmn
26th October 2015, 07:46
That should do the trick. Thank you very much.