Details
-
Suggestion
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.5.3
-
None
Description
When cursor goes from overlapped item to overlapping - now only hoverEnterEvent() for overlapping item is called. Application and Qt thing cursor still is over overlapped item. But in some applications there is strongly needed redraw or recalculate overlapped item in any way. Simplest example is - remove highlight from overlapped item. Now for this simple task it's needed implement code to find which one item should be reprocessed when cursor enters from one item to another.
Suggestion: implement this code in core Qt and allow switch this code on or off by new flag QGraphicsItem::CursorHoverMonopoly. If this flag is off then hoverEnterEvent() and hoverLeaveEvent() work like they do now. If on then when cursor goes to overlapping item then first hoverLeaveEvent() for overlapped is called and only after it hoverEnterEvent() for overlapping is called.