Getting object coordinates (in the same way they are given with gp_Pnt class)

Hi,

I am trying to retrieve the X and Y coordinates of the objects clicked or hovered in an OpenGLWidget. I get X and Y positions of clicked objects but their values are not compatible with the values that they are put into the widget with for example gp_Pnt X and Y coordinates. How can I get(or convert) this the same X and Y coordinates of the objects which are pointed(or hovered) with mouse?

Thanks in advance.

Development Platform: Qt