sean.reynolds
10th April 2011, 08:37
Hey guys,
I havea a QGraphicsPolygonItem (Just a simple rectangle) that I can drag around in my QGraphicsScene.
I can select the shape and drag it around. However if it is dragged too far to the edge of the window, it gets clipped and goes off screen.
Have a look at the API but couldn't find how I can restrict the area the polygon can move around.
Any ideas?
Thanks
Sean
I havea a QGraphicsPolygonItem (Just a simple rectangle) that I can drag around in my QGraphicsScene.
I can select the shape and drag it around. However if it is dragged too far to the edge of the window, it gets clipped and goes off screen.
Have a look at the API but couldn't find how I can restrict the area the polygon can move around.
Any ideas?
Thanks
Sean