Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Extend rectangle size by click
BlackMamba last edited by
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?
Code_ReaQtor last edited by
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.