-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.9
-
None
If there are two sibling mouse areas stacked on top of each other and they both accept left mouse button press events, after forwarding the QMouseEvent to QQuickWindow, QEvent::isAccepted() will not return true.
import QtQuick Rectangle { color: "red" MouseArea { anchors.fill: parent onPressed: (mouse) => { console.log("mouse area 1"); } } MouseArea { anchors.fill: parent onPressed: (mouse) => { console.log("mouse area 2"); mouse.accepted = true; } } }
The attached demo shows the issue. It forwards a fake mouse button press event to the quick view and even though the second mouse area accepts the press event, event.isAccepted() returns false, which is unexpected.