QCustomPlot Discussion and Comments

How to find closest key of graph by cursor coords?Return to overview

How to find closest key of graph by cursor coords?

You do this with the QCPGraph::selectTest method.

It's explained at the end of the data selection tutorial:
https://www.qcustomplot.com/documentation/dataselection.html