Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Latest commit

 

History

History
70 lines (54 loc) · 1.5 KB

README.md

File metadata and controls

70 lines (54 loc) · 1.5 KB

[DEPRECATED] - Use cutekeyboard instead

QtFreeVirtualKeyboard

QtFreeVirtualKeyboard is a Qt virtual keyboard plugin for embedded applications.

Installation

Download the repository, build and install the plugin.

git clone https://github.com/amarula/QtFreeVirtualKeyboard.git
mkdir build && cd build
qmake ../VirtualKeyboard
make -j4
make install

Usage

In the main.cpp add the freevirtualkeyboard plugin.

qputenv("QT_IM_MODULE", QByteArray("freevirtualkeyboard"));

In the main.qml insert the keyboard component

import QtQuick.FreeVirtualKeyboard 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
            }
        }
    }
}

Authors

License

MIT