Get the pixel coordinates of an image under the mouse cursor
General and Desktop
1
Posts
1
Posters
964
Views
1
Watching
-
wrote on 11 May 2015, 15:27 last edited by kio.marv 5 Nov 2015, 16:45
Hi,
I have a QGraphicsScene with a pixmap inserted in it. I'm trying to check the pixel coordinate that is under the mouse cursor.
Will mapToScene() suffice or do I need to do some math?
Thanks!
PS: The idea is to achieve the same as gluUnproject in OpenGL.
1/1