Installing QtVirtualKeyboard on a Qt Widget App
-
Hello, I'm trying to add the QtVirtualKeyboard to an existing Qt Widget App but I'm having trouble doing so. I'm using QtCreator and Qt version 5.15.2.
I started by trying to addqputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));to the main.cpp file andQT += virtualkeyboardin the .pro file but I got a "unknown module" error.Now I'm trying to compile the source code for the keyboard but when running it I'm having these errors.

How do I go about adding the keyboard to my app?
Thank you -
Hello, I'm trying to add the QtVirtualKeyboard to an existing Qt Widget App but I'm having trouble doing so. I'm using QtCreator and Qt version 5.15.2.
I started by trying to addqputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));to the main.cpp file andQT += virtualkeyboardin the .pro file but I got a "unknown module" error.Now I'm trying to compile the source code for the keyboard but when running it I'm having these errors.

How do I go about adding the keyboard to my app?
Thank you@Deneguil said in Installing QtVirtualKeyboard on a Qt Widget App:
Now I'm trying to compile the source code for the keyboard
It would be actually easier to install Qt Virtual Keyboard instead.
How did you install Qt and on which OS? -
@Deneguil said in Installing QtVirtualKeyboard on a Qt Widget App:
Now I'm trying to compile the source code for the keyboard
It would be actually easier to install Qt Virtual Keyboard instead.
How did you install Qt and on which OS? -
@jsulm I'm on a raspberry pi 4 running raspbian, and to be honest I'm not sure how Qt was installed it was already on it when given to me for the project and the person who installed it forgot how he did it
-
@Deneguil Are you cross-compiling?
To install virtual keyboard on RaspberryPI install these packages using apt:- libqt5virtualkeyboard5
- libqt5virtualkeyboard5-dev
-
@jsulm It's for an embedded app so it'll only run on a raspberry
Thank you for the packages, I now need to addQT += virtualkeyboardin the .pro file and create an input panel to use the keyboard right? -
QT += virtualkeyboard
Project ERROR: Unknown module(s) in QT: virtualkeyboard
In My case , this will error will generated
OS : linux (I am using a imx board for crosscompiling)
Qt5 -
QT += virtualkeyboard
Project ERROR: Unknown module(s) in QT: virtualkeyboard
In My case , this will error will generated
OS : linux (I am using a imx board for crosscompiling)
Qt5@nadimnadaf If you read this thread you will see what the solution was.
Did you try that? -
@jsulm Yes
-
Hi,
So what exactly did you do to install Qt on your target ?
Use distribution packages ?
Deployed your cross-compiled Qt ?
If the latter, did you cross-compile the module as well ? -
@SGaist said in Installing QtVirtualKeyboard on a Qt Widget App:
So what exactly did you do to install Qt on your target ?
Its a Yocto Setup.
-
@SGaist said in Installing QtVirtualKeyboard on a Qt Widget App:
So what exactly did you do to install Qt on your target ?
Its a Yocto Setup.
@nadimnadaf said in Installing QtVirtualKeyboard on a Qt Widget App:
Its a Yocto Setup.
Then you also have to build QtVirtualKeyboard module using Yocto I guess