QML virtual keyboard dimensions
问题 I'm having trouble finding the dimensions for the virtual keyboard. Here's an example: Rectangle { Component.onCompleted: { Qt.inputMethod.visibleChanged.connect(resizeForKeyboard) } Component.onDestruction: { Qt.inputMethod.visibleChanged.disconnect(resizeForKeyboard) } function resizeForKeyboard(){ console.log('Visibility changed!!!'); var keys = Object.keys(Qt.inputMethod.keyboardRectangle); var rect = Qt.inputMethod.keyboardRectangle; //A simple script I have for debugging, this loops /