Solved QGraphicsItem::hoverEnterEvent & entering a QGraphicsItem WITHOUT moving the mouse
-
Hello,
If the cursor enters some QGraphicsItem because the user moved his mouse,
QGraphicsItem::hoverEnterEvent
is called. But if the cursor enters the QGraphicsItem because an animation moved that QGraphicsItem towards the cursor,QGraphicsItem::hoverEnterEvent
isn't called. Is there a simple way to fix that? -
Hi,
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.
-
@SGaist Thank you!