How to find closest key of graph by cursor coords?
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