Commit 2f3c8f79 authored by Richard Moe Gustavsen's avatar Richard Moe Gustavsen
Browse files

example, touchinteraction: use forceActiveFocus to gain focus


Use forceActiveFocus to gain focus when the user clicks on
a note. Just setting focus on an item is not enough to gain
keyboard focus.

Change-Id: Ia4a68a17df0df4b321cc6edb646b39c36167e982
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@theqtcompany.com>
Reviewed-by: default avatarCaroline Chao <caroline.chao@theqtcompany.com>
parent b5403efc
No related merge requests found
Showing with 1 addition and 1 deletion
...@@ -116,7 +116,7 @@ Component { ...@@ -116,7 +116,7 @@ Component {
drag.maximumY: page.height - 80 drag.maximumY: page.height - 80
drag.minimumX: 100 drag.minimumX: 100
drag.maximumX: page.width - 140 drag.maximumX: page.width - 140
onClicked: { myText.focus = true; Qt.inputMethod.show(); } onClicked: myText.forceActiveFocus()
} }
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment