Mouse Move Event of QGraphicsView
-
I have custom GraphicsView. I override
mouseMoveEvent. In QGraphicsScene i have QGraphicsRectItem which i can move. When i press not on QGraphicsRectItem and movemouseMoveEventworks, but when i press on QGraphicsRectItemmouseMoveEventdoesnt work. In constructor of GraphicsView i wrotesetMouseTracking(true -
Hi,
Because you are on top of an item which can have it's own handling of mouse events especially if you made it movable.