Hi,

I have a QwtPlot. I'd like to get the value of point under the mouse cursor. Yet I can recieve the coordinates:
Qt Code:
  1. QwtPicker *picker = new QwtPicker(this);
  2. picker->setTrackerMode(QwtPicker::AlwaysOn);
To copy to clipboard, switch view to plain text mode 

,but how can I get the value of x and f(x), also how should I convert coordinates to values, and vice versa?

Furthermore, how could I insert text to the QwtPlot, because I want put the values next to the points.

Please, insert short example code, since I'm absolute beginner...
Thank's in advance.