Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.3
-
None
Description
If I have a TextInput inside a FocusScope such as in the application below, I would expect setting the focus property of the FocusScope to false to remove activeFocus from the TextInput. Instead the TextInput activeFocus property is unchanged and the input continues to receive key events.
import QtQuick 1.0 MouseArea { width: 300; height: 300 onClicked: scope.focus = false Rectangle { anchors.centerIn: parent width: 200; height: input.implicitHeight + 4 border.width: 1 color: input.activeFocus ? "white" : "grey" FocusScope { id: scope anchors.fill: parent TextInput { id: input anchors { fill: parent; margins: 2 } focus: true } } } }