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 += virtualkeyboard
in 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? -
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.
-
@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