[Qt-qml] Components, loaders, and focus scope
mathias.malmqvist at nokia.com
mathias.malmqvist at nokia.com
Thu Dec 16 16:44:07 CET 2010
Thanks Girish, that helped!
Is this the right thing to do, or a workaround? Will it break some things?
Posted http://bugreports.qt.nokia.com/browse/QTBUG-16157
Cheers
Mathias
________________________________________
From: ext Girish Ramakrishnan [girish at forwardbias.in]
Sent: Thursday, December 16, 2010 2:43 PM
To: Malmqvist Mathias (Nokia-MS/London)
Cc: qt-qml at qt.nokia.com
Subject: Re: [Qt-qml] Components, loaders, and focus scope
Hi Mathias,
On Thu, Dec 16, 2010 at 7:43 PM, <mathias.malmqvist at nokia.com> 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
More information about the Qt-qml
mailing list