Alternative Cross-Platform On-Screen Keyboard for Qt5 and Qt6
mkdir build
cmake ..
cmake --build .
Install with :
cmake --install .
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 !!