Search code examples
qtqmlqtquick2qtvirtualkeyboard

Remove "British-English" in Virtual Keyboard QML


How to remove "British-English" which is in the spacebar? Please refer below image.

enter image description here

[Update 1]:

Following is the code that i am using for input panel:

 InputPanel {
    id: inputPanel
    parent:mainWindow.contentItem
    z: 1000002
    anchors.bottom:parent.bottom
    anchors.left: parent.left
    anchors.right: parent.right

    visible: Qt.inputMethod.visible
 }

Solution

  • You'd need to make a 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
        }
    }