I'd like to install a virtual keyboard on my QtQuickApplication using an Input Panel :
import QtQuick.VirtualKeyboard 2.1
InputPanel {
id: inputPanel
anchors.fill: parent
focus: true
}
I have no mouse (nor touchscreen) on my system. I only have a small keyboard (max 10 buttons) to control my GUI.
I'd like to select and type keys from a virtual keyboard using the qml code.
Is there any way to control the virtual keyboard using some qml code ?
QKeyEvent *event = new QKeyEvent ( QEvent::KeyPress, Qt::Key_Enter, Qt::NoModifier); QCoreApplication::postEvent (engine->rootObjects().first(), event);
– folibis