Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get the pixel coordinates of an image under the mouse cursor
Forum Updated to NodeBB v4.3 + New Features

Get the pixel coordinates of an image under the mouse cursor

Scheduled Pinned Locked Moved General and Desktop
graphics scenecursor
1 Posts 1 Posters 963 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kio.marv
    wrote on last edited by kio.marv
    #1

    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 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved