Re: [SailfishDevel] TextField.forceActiveFocus() works only every second time

2017-06-22 Thread Michael Fuchs
Hi Jerome, Thanks a lot, this should do it. Am 22.06.2017 um 12:30 schrieb jerome levreau: hi, I think this is an event loop issue, your event get in the middle or other ui pending signal. Her a walk around using a timer : Button { x: Theme.horizontalPageMargin text: qsTr("Hello S

Re: [SailfishDevel] TextField.forceActiveFocus() works only every second time

2017-06-22 Thread jerome levreau
hi, I think this is an event loop issue, your event get in the middle or other ui pending signal. Her a walk around using a timer : Button { x: Theme.horizontalPageMargin text: qsTr("Hello Sailors") onClicked: { ta.text += "hello"; focus=false; bp_d.start();

[SailfishDevel] TextField.forceActiveFocus() works only every second time

2017-06-22 Thread Michael Fuchs
Hi Guys, I got a textinput (e.g. TextField) in which the text gets manipulated by pushing a button. After the manipulation the input should get back focus. I'm trying it like this: Button { x: Theme.horizontalPageMargin text: qsTr("Hello Sailors") onClicked: { ta.text += "