What I\'m trying to do is to restrict the movements of a QGraphicsRectItem inside a QGraphicsScene by never letting it leave the scene.
Here is what I\'ve tried so fa