Details
-
Suggestion
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.2.1
-
None
Description
With overlapping MouseArea, it seems to be impossible to pass mouse position events from an inner MouseArea to an outer one.
In this example, I would expect that the outer rectangle's coordinates change when mouse is moved inside the inner rectangle.
import QtQuick 2.2 import QtQuick.Controls 1.1 Rectangle { color: "red" width: 100 height: 100 MouseArea { id: outer anchors.fill: parent hoverEnabled: true } Label { text: outer.mouseX + "," + outer.mouseY } Rectangle { color: "blue" width: 50 height: 50 anchors.centerIn: parent MouseArea { id: inner anchors.fill: parent hoverEnabled: true onPositionChanged: { mouse.accepted = false // documentation says this is ignored, why is that? } } Label { text: inner.mouseX + "," + inner.mouseY } } }
This is most likely related to QTBUG-37544