删除虚拟键盘QML中的“英式英语”

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了删除虚拟键盘QML中的“英式英语”相关的知识,希望对你有一定的参考价值。

如何删除空格键中的“英国英语”?请参考下图。

enter image description here

[更新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 stylespaceKeyPanel。例如,调整default style's spaceKeyPanel

spaceKeyPanel: KeyPanel {
    Rectangle {
        id: spaceKeyBackground
        radius: 5
        color: "#35322f"
        anchors.fill: parent
        anchors.margins: keyBackgroundMargin
    }
}

以上是关于删除虚拟键盘QML中的“英式英语”的主要内容,如果未能解决你的问题,请参考以下文章