Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Issue with cursor updating on QGraphicsItem in Qt 5.2 Mac OS.
Hasmik last edited by
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)
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 ?