Qt 6.11 is out! See what's new in the release
blog
Qt5 QML - Get the virtual keyboard height (Android/iOS)
-
Hello,
Is there a simple wau to get the height of the native virtual keyboard via QML?
I raise it with Qt.inputMethod.show() and try to measure it with Qt.inputMethod.keyboardRectangle but I get a result of 0.
var d = Qt.inputMethod.keyboardRectangle my_text_id.text = d.height + '';Note: I don't use
keyboardRectangle()because Qt complains that this function doesn't exist.
So, there may be something I missed in between.
Thanks