Hello all,

I am modifying the real time plot example, using my own data to display.
With a mouse I want to select one point of the plot and display the value of Y axis in a textbox.

For the moment I did the part with displaying value of "y" axis where the mouse is located.

connect(customPlot, SIGNAL(mouseMove(QMouseEvent*)),this,SLOT(showPointValue(QMouseEvent*)));

void plotwindow::showPointValue(QMouseEvent *event)
{
    int y = ui->customPlot->yAxis->pixelToCoord(event->pos().y());
    ui->point_label->setText(QString("Value: %1").arg(y));
}

Can anybody help me with select a point part?
Thank you, Maria.