QCustomPlot Discussion and Comments

x-y position of right click pointReturn to overview

hi,i have 16 logic channel and i draw all of them in a pannel. y range is from 0 to 17 and each channel is draw in a particular y-level. i want to know in which x and y, user right clicked.but pos.x() and pos.y() is Relative position and change with scrol change. i want to get xAxis and y-axis of right click position to found what channel user want to select?
any solution?

I believe this is what you are looking for.

double QCPAxis::pixelToCoord ( double  value) const

Transforms value, in pixel coordinates of the QCustomPlot widget, to axis coordinates.