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. Placing a rectangle on an image
Qt 6.11 is out! See what's new in the release blog

Placing a rectangle on an image

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 807 Views 2 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.
  • P Offline
    P Offline
    Pedro_Monteiro
    wrote on last edited by
    #1

    Hello, I want to put a rectangle on an image (QLabel using QPixmap) where this rectangle would be just under the area of the image or in a restricted area of the screen, and the user could resize it over the image, move it over the image using the pointer of mouse. How can I do this in Qt Designer or in code?
    Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You could take a look at the Graphics View Framework for that kind of task.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        You could take a look at the Graphics View Framework for that kind of task.

        Hope it helps

        P Offline
        P Offline
        Pedro_Monteiro
        wrote on last edited by
        #3

        @SGaist Thank you very much, that's exactly what I need!

        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