官方的虚拟键盘例程是使用
qml 实现的
但是 qml 里这个 inputpanel 对应 c++ 里边的什么东西啊?
import
QtQuick 2.0import
QtQuick.VirtualKeyboard
2.1Item {id: rootItem {id: appContaineranchors
.left: parent
.leftanchors
.top: parent
.topanchors
.right: parent
.rightanchors
.bottom: inputPanel
.top
...}InputPanel {id: inputPanely:
Qt.inputMethod
.visible
? parent
.height
- inputPanel
.height : parent
.heightanchors
.left: parent
.leftanchors
.right: parent
.right}}