CuteKeyboard is a Qt virtual keyboard plugin for embedded applications.
Download the repository, build and install the plugin.
mkdir build && cd build
qmake ..
make -j4
make installmkdir build && cd build
qmake .. INSTALL_PREFIX=/home/custom_dir/custom_root
make -j4
make installmkdir build && cd build
qmake .. CONFIG+=BUILD_EXAMPLES
make -j4
make installIn the main.cpp add the cutekeyboard plugin.
qputenv("QT_IM_MODULE", QByteArray("cutekeyboard"));In the main.qml insert the keyboard component
import QtQuick.CuteKeyboard 1.0
...
InputPanel {
id: inputPanel
z: 99
y: window.height
anchors.left: parent.left
anchors.right: parent.right
states: State {
name: "visible"
when: Qt.inputMethod.visible
PropertyChanges {
target: inputPanel
y: window.height - inputPanel.height
}
}
transitions: Transition {
from: ""
to: "visible"
reversible: true
ParallelAnimation {
NumberAnimation {
properties: "y"
duration: 150
easing.type: Easing.InOutQuad
}
}
}
}- Uwe Kindler - Initial work - githubuser0xFFFF
- Andrea Ricchi - Maintainer - AndreaRicchi