PDA

View Full Version : Extend QGraphicsScene only in one direction



sean.reynolds
25th April 2011, 12:20
Hey Guys,

I have a QGraphicsItem that i can move about in a scene.

Currently, if i dont setSceneRect(), i can move the item in all directions, and the scene extends when i drag the item past the boundary limits.

Is it possible to restrict the QGraphicsItem within the width of the scene, and extend the vertical component of the scene as required?

Thanks