To reproduce, run attached example and move mouse over the text.
It should print out hover events it receives, but there are none.
If instead the setting of scene modality is delayed (toggle the #if), the text item will then receive those hover events normally.
|For Gerrit Dashboard: QTBUG-77233|
|283438,3||QGraphicsItem: Fix mouse tracking with modal panels||5.15||qt/qtbase||Status: MERGED||+2||0|