Is there a way to restrict the area where a QGraphicsItem like QRect can be moved when setFlag(ItemIsMovable) is set?
I'm new to pyqt and trying to find a way to move an item with the mouse, and the restrict it to only vertically/horizontally.
Thanks!