How to trap qgraphicsitem inside another qgraphicsitem?
MatheusIH last edited by
Hi, I'm trying to create a movable QGraphicsItem, but I want it to be movable only inside the boundings of another QGraphicsRectItem, I want it so that it stops at the edge when I try to move my item outside of the RectItem, similar to how mouse cursor stops at the end of the screen. I'm guessing I can do this using collision detection but have no idea where to go.
Thanks for help,