Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGraphicsItem::hoverEnterEvent & entering a QGraphicsItem WITHOUT moving the mouse
Pippin last edited by Pippin
If the cursor enters some QGraphicsItem because the user moved his mouse,
QGraphicsItem::hoverEnterEventis called. But if the cursor enters the QGraphicsItem because an animation moved that QGraphicsItem towards the cursor,
QGraphicsItem::hoverEnterEventisn't called. Is there a simple way to fix that?
Not really because currently the mouse is not hovering since it doesn't move. What you can do is some "collision detection" while your item is moving so if the cursor is over it do the same thing as it hovered it.
Pippin last edited by
@SGaist Thank you!