How to get back actual coordinate from qopenglwidget
-
I have plotted multiple line using linestrip in qt opengl. I have added some coordinate Like (x=5431073.1837, y=7668055.24341, z=0). Now i want to get back the same coordinate while i keep my mouse on the same position. I have tried with mouse movement global position and local position. But it does not show exact coordinates value. I am new in qt. Can anyone tell me how to solve this problem?
-
Hi,
How exactly did you do that ?
How do you setup your OpenGL scene ? -
@SGaist Hi.
I am not sure if i am giving correct answer or not!! I have used shader program glDrawArray. And used modelMatrix, viewMatrix and projectionMatrix. I fetching data from a vector where lots of data are added. -
Then you have to translate the mouse position on your widget to something that makes sense in your scene.