Important: Please read the Qt Code of Conduct -

Issue with cursor updating on QGraphicsItem in Qt 5.2 Mac OS.

  • I use Qt 5.2 for mac application and i try to change cursors on QGraphicScene. QGraphicsItem's setCursor(const QCursor &) is used for that purpose. The event where cursor should be updated triggers but the cursor doesn't update. The cursor update works after the graphicsView leaveEvent and enterEvent are triggered.
    The code looks like so:
    @void MyGraphicItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You are missing a call to the base class implementation of hoverEnterEvent. What happens if you add it after setOpacity ?

Log in to reply