Get coordinates of scatter points on a graph

701 Views Asked by At

Is there a way to get the pixel cordinates of the points in QCPDataMap ? or is there a way to extract the cordinates of all the scattered points in a graph ?

1

There are 1 best solutions below

0
On

Use QCpAxis::pixelToCoord of xAxis and yAxis to convert graph coordinates to px.

If you need global coordinates, use QWidget::mapToGlobal after that.