Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Android Keyboard window panning
-
Greetings Qt enthusiasts (and ex-trolls),
Sometimes, when using a TextInput on Android the system pans the view of the application upwards (when the focused TextInput is under the keyboard). That's all fine with me, except I'm having a hard time figuring out what chunk of my application is really visible and its geometry.
Especially since that panning does not seem to affect the 'y' of my window... I tried a few things with QInputMethod but I'm not entirely sure how to do that.
Has anyone figured that one out before ?
-
Looks like I can do something like this:
var rectangle = Qt.inputMethod.keyboardRectangle; var keyboardPanning = rectangle.height - (view.height - rectangle.y);