Important: Please read the Qt Code of Conduct -

Interactive image

  • 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 ;)

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

  • Understood, I thought there was a better solution!

    Thank you anyway ;)

Log in to reply