Hello. I have to do the following: when I point to the value (big dot - qwtSymbol) a coordinate of this value will be appeared . I found on the internet the method realization and I change it a little:

Qt Code:
  1. void Monitoring::showToolTip(QMouseEvent* ev){
  2.  
  3. if(ev == QEvent::MouseMove) {
  4.  
  5. double distance = 1e99;
  6. int point_index = first_c->closestPoint(QPoint(ev->x(), ev->y()), &distance); // for my one of my curves
  7.  
  8. QwtPlotMarker* tooltip = new QwtPlotMarker();
  9. tooltip->setLabel(QString("hello")); //for debugging
  10. tooltip->attach(funPlot);
  11. funPlot->replot();
  12. }
To copy to clipboard, switch view to plain text mode 

But I don't understand how to call this function. I thought I could call it through the signal-slot construction, but I can't pick up appropriate signal.