Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
5.0.1
-
None
-
Windows 7, Linux
Description
Run the following code. Mouse press the rectangle (do not release!) and drag the mouse. Signals received:
onEnabledChange()
onPositionChange()
Since enabled is set to false in onPressed, onPositionChange() should not arrive. When mouse is relesed and pressed/dragged again, onPositionChange() signal does not arrive any more.
This does not happen with QtQuick 1.1
import QtQuick 2.0 Rectangle { width: 360 height: 360 Text { anchors.centerIn: parent text: "Hello World" } MouseArea { anchors.fill: parent onPressed: enabled= false; onEnabledChanged: console.debug("Enabled: " + enabled) onPositionChanged: console.debug("Position: " + mouseX + ", " + mouseY) } }
Attachments
Issue Links
- relates to
-
QTBUG-103788 Disabling parent of MouseArea in onPressed gets stuck with mouse but not through touch
-
- Closed
-
-
QTBUG-32316 Inconsistent enabled behavior
-
- Reported
-
-
QTBUG-38364 MouseArea doesn't propagate the disabled state to children
-
- Open
-