Hi Mathias,
On Thu, Dec 16, 2010 at 7:43 PM, <[email protected]> wrote:
8< snipped
> TextInput {
> width: 200
> height: 20
> Rectangle { color: parent.activeFocus ? "green" : "red";
> anchors.fill: parent; z: -1 }
>
> activeFocusOnPress: false
> MouseArea { anchors.fill: parent; onClicked: parent.focus = true }
> }
Try parent.forceActiveFocus() instead above.
Girish
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml