Get Keyboard height in android
Unsolved
Mobile and Embedded
-
Greetings
Am trying to get the height of the virtual keyboard in android using Qt.inputMethod::keyboardRectangle but i keep getting unexpected results (the Qt.inputMethod::keyboardRectangle.height is larger(almost 2 times) than the virtual keyboad height).
i have noticed in the Qt documentation
Qt.InputMethod::keyboardRectangle
" Virtual keyboard's geometry in window coordinates."Then if the geometry is in window coodinates..then how can i convert them to qml units...
Thanks
-
@Sheep That is what I meant. The unit of geometry data is pixel int and you can use the data in qml directly.
I could be wrong. The coordinate y could be incorrect as well if the height is wrong. It is likely that your call to the func is too early.