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. Extend rectangle size by click
QtWS25 Last Chance

Extend rectangle size by click

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 910 Views
  • 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.
  • BlackMambaB Offline
    BlackMambaB Offline
    BlackMamba
    wrote on last edited by
    #1

    Hello everybody,

    I have a class which inehits of QGraphicsWidget which enables to build rectangles. I would like to be able to extend the rectangle when I click near the border to change the lenght. I mean : left click on the right border for example, stay on click, move the mouse to where you want to extend, then release. (kind of drag and drop)
    What is the best way to do that in your opinion?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Code_ReaQtor
      wrote on last edited by
      #2

      Take a look into my "fork":https://github.com/Code-ReaQtor/sizegripitem in github, however it works ONLY with QGraphicsRectItem and QGraphicsEllipseItem. You may use it as a reference.

      Please visit my open-source projects at https://github.com/Code-ReaQtor.

      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