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. Interactive image

Interactive image

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.2k 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.
  • R Offline
    R Offline
    rfringuello89
    wrote on last edited by
    #1

    Hi All!!
    Can I define several "clickable" areas over an image?
    I mean different areas can be clicked and each area emits a signal which allows me to understand where the user have clicked?

    Thanks ;)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SebiSebi
      wrote on last edited by
      #2

      I think you cannot do the process exactly as you said. But you can use QMouseEvent in order to find the position of the mouse when clicked. If you know the position you can calculate in which "sector" of the image it lays. Hope it helps!

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rfringuello89
        wrote on last edited by
        #3

        Understood, I thought there was a better solution!

        Thank you anyway ;)

        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