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

A QML based on screen virtual keyboard for embedded QML applications

License

Notifications You must be signed in to change notification settings

amarula/QtFreeVirtualKeyboard

 
 

Repository files navigation

[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

About

A QML based on screen virtual keyboard for embedded QML applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • QML 75.0%
  • C++ 22.7%
  • QMake 1.7%
  • Other 0.6%