Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to drag rectangle for resizing in Qt
Qt 6.12 LTS is out! See what's new in the release blog

how to drag rectangle for resizing in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 456 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.
  • Ashok KumarA Offline
    Ashok KumarA Offline
    Ashok Kumar
    wrote on last edited by Ashok Kumar
    #1

    i have painted a rectangle using paintEvent. now the thing is i want to resize the size of rectangle as i want . if i drag the left margin of the rectangle then only the size has to increase in the left side i.e the width should be changed in horizontal manner . if i drag the top margin only the top side size should be increased. how to do it.

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

      Hi,

      What are you painting on ?

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

      1 Reply Last reply
      1

      • Login

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