I am writing an application that uses Qt 5.6.3 and QtVirtualKeyboard, and I need to be able to enable/disable its keys. I managed to do it by manually editing the layout files, but I need to do it dynamically, depending on user input.
I have InputPanel
that I am using in my qml file like so
InputPanel {
id: inputPanel
visible: true
y: parent.height - inputPanel.height
anchors.left: parent.left
anchors.right: parent.right
}
This is the default keyboard with all keys enabled.
And here Q/W/E/R/T are disabled.
How can I disable VirtualKeyboard keys like that in either c++ or qml?