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


    because Qt complains that this function doesn't exist.

    So, there may be something I missed in between.


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.