PDA

View Full Version : Place Plot marks on mouse click event



maybe78
19th November 2009, 08:36
Hello!

I want to place some text marks on my plot, upon mouse click. Like in gnuplot.
I disable zoom & pan by some button, and on pressing other button I want to click on a plot and place a mark on it.

How can i implement this?

There is no MouseEvents in QwtPlotMarker, and in the QwtPlot

Uwe
19th November 2009, 08:53
Use a QwtPlotPicker in PointSelection mode and connect its selected() signal to a slot, where you insert your markers.

Uwe

maybe78
19th November 2009, 12:16
Thank you, Uwe!

It works. Now I'll try to find the way to remove this markers from the plot :D