Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.7.3
-
None
Description
Run the code below. Note that you can flick the blue rectangle by clicking down and dragging anywhere, outside it or outside it. Now click the rectangle to set "enabled = false", and note that flicking events started inside the rectangle has stopped working.
import Qt 4.7 Flickable { width: 800 height: 800 contentWidth: width+1 // make it flickable contentHeight: height+1 Rectangle { width: 100 height: 100 color: enabled ? "blue" : "red" anchors.centerIn: parent MouseArea { anchors.fill: parent onClicked: parent.enabled = false } } }
Attachments
Issue Links
- relates to
-
QTBUG-38364 MouseArea doesn't propagate the disabled state to children
-
- Open
-
-
QTBUG-103788 Disabling parent of MouseArea in onPressed gets stuck with mouse but not through touch
-
- Closed
-