QCustomPlot Discussion and Comments

How to display corrsponding value (coordinate) on y-axis?Return to overview

I am drawing some horizontal reference lines. how can I show the corresponding value (y-axis coordinate) of each line on the y-axis?

Apologize, for such a basic question.
However, I have executed using the following lines of code.

 
    QSharedPointer<QCPAxisTickerText> textTicker(new QCPAxisTickerText);
    ui->custom_plot->yAxis->setTicker(textTicker);
    textTicker->addTick(position, "value/text");