Gianluca:
For simple QML layouts, I think your technique would work.
But I found that mousearea had issues when you had Loader objects in the chain.
Another approach is to use a Q_INVOKABLE function to register any QML
object that you want to have the keyboard hide whenever the touch
outside
of
Hello,
I do in this way:
- add a MouseArea covering the entire screen that got a z level lower than any
other input area (like TextArea)
- on the onClicked I just call: Qt.inputMethod.hide() and the keyboard will
close is you click outside any other active elements.
Ciao,
Gianluca.
> On 24 F
I use TextArea as input in qml file. When clicking TextArea, keyboard pops up.
But the keyboard could not hide while clicking outside of it. Whether there is
a method or any API in qml can resolve this problem conveniently?
thanks.
Yi___
Interest mail