For this you need to subclass QGraphicsScene and re-implement mouseMoveEvent. In mouseMoveEvent, you need to identify that particular item and manually restrict the movable area of that item. Here the point is, the item cannot cannot control this behaviour but its parent can.![]()
Bookmarks