PDA

View Full Version : resize a QGraphicsItem



dreamer
29th April 2008, 10:49
HI.
How can i implement the resize behaviour of my custom QGraphicsRectItem??

When i pass with the mouse on a corner, i could resize the item in height and in width.....

wysota
29th April 2008, 10:58
Reimplement mouse events for the item and check if you are "near enough" the corner and if so, adjust the item's geometry in mouse move event.