I have been reading several examples and threads about qwtPlotPicker, but most people have extreme problems for the standards of my understanding, so the solutions are more confusing than answering to my questions.

Problem
  1. create a picker
  2. when you click
  3. you leave mark on the plot/canvas, a cross "+", an "x", whatever
  4. get the clicked coordinates in a variable


So far, I have reached this point:

Qt Code:
  1. mypicker = new QwtPlotPicker(m_amp->canvas());
  2. mypicker->setTrackerMode(QwtPicker::AlwaysOn);
  3. mypicker->setRubberBand(QwtPicker::VLineRubberBand);//not sure for this!
  4. mypicker->setSelectionFlags(QwtPicker::PointSelection | QwtPicker::ClickSelection);
To copy to clipboard, switch view to plain text mode 

any suggestions to move on?!