在虚拟键盘 QML 中删除 "British-English"
Remove "British-English" in Virtual Keyboard QML
如何删除空格键中的"British-English"?请参考下图。
[更新 1]:
以下是我用于输入面板的代码:
InputPanel {
id: inputPanel
parent:mainWindow.contentItem
z: 1000002
anchors.bottom:parent.bottom
anchors.left: parent.left
anchors.right: parent.right
visible: Qt.inputMethod.visible
}
你需要做一个 custom style where you override the spaceKeyPanel
. For example, adapting the default style's spaceKeyPanel
:
spaceKeyPanel: KeyPanel {
Rectangle {
id: spaceKeyBackground
radius: 5
color: "#35322f"
anchors.fill: parent
anchors.margins: keyBackgroundMargin
}
}
如何删除空格键中的"British-English"?请参考下图。
[更新 1]:
以下是我用于输入面板的代码:
InputPanel {
id: inputPanel
parent:mainWindow.contentItem
z: 1000002
anchors.bottom:parent.bottom
anchors.left: parent.left
anchors.right: parent.right
visible: Qt.inputMethod.visible
}
你需要做一个 custom style where you override the spaceKeyPanel
. For example, adapting the default style's spaceKeyPanel
:
spaceKeyPanel: KeyPanel {
Rectangle {
id: spaceKeyBackground
radius: 5
color: "#35322f"
anchors.fill: parent
anchors.margins: keyBackgroundMargin
}
}