lizabelos / UnivKbd

Alternative Coss-Platform On-Screen Keyboard for Qt5 and Qt6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnivKbd

Alternative Cross-Platform On-Screen Keyboard for Qt5 and Qt6

UnivKbd

How to build

mkdir build
cmake ..
cmake --build .

Install with :

cmake --install .

Usage

To link with cmake :

find_package(UnivKbd REQUIRED)
target_link_libraries(myapp PRIVATE UnivKbd::UnivKbd)

With autotools, link to the library libUnivKbd.a or libUnivKbd.lib.

To create a floating keyboard that will show up when a widget is focused, use the following code:

#include <UnivKbd/UnivKbd>

QWidget *anyWidget = ...;
UnivKbd::VirtualKeyboard *keyboard = new VirtualKeyboard(mTextEditor);

If you don't want the keyboard to float, you can add it whenever you want to your widget's layout:

anyWidget->layout()->addWidget(keyboard);

And that's this simple !!

About

Alternative Coss-Platform On-Screen Keyboard for Qt5 and Qt6

License:MIT License


Languages

Language:C++ 93.5%Language:CMake 6.5%