Get the pixel coordinates of an image under the mouse cursor



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.