Qt 5.15.2 - QtVirtualKeyboard doesn't work with Wayland-egl
-
Hi All,
I would like to integrate the QtVirtualKeyboard in the "simplebrowser" example available in QtWebEngine (Qt 5.15.2).
My embedded platform is wayland-egl (Linux).I added the following line in the main.cpp file:
int main(int argc, char **argv) { QCoreApplication::setOrganizationName("QtExamples"); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); QApplication app(argc, argv); app.setWindowIcon(QIcon(QStringLiteral(":AppLogoColor.png")));
The issue:
when I run the application "simplebrowser" with the following command:./simplebrowser -platform wayland-egl
I receive the following error:
qt.qpa.wayland: qtvirtualkeyboard currently is not supported at client-side, use QT_IM_MODULE=qtvirtualkeyboard at compositor-side.
When I click on the browser url to enter a new url, the virtual keyboard appears for a while and dissappears immediately.
Any trick to solve this issue?
-
I think you should try it with another plugin.Is it working with a simple Qt quick app? I have it working well on my rpi with yocto
-
@Ronel_qtmaster Thank you very much for your feedback. No, I haven't tried with Qt Quick. I will try it. Thank you for the advice.
- is your RPI a wayland platform?
- which Qt version are you using?
Could you provide me some more details on how you have integrate the Qt Virtual Keyboard?
Thank you a lot for your help!
-
@fbelloni OKay you should try with a simple exemple first
i am using Qt 5.12 , my raspberry image is mainly running on EGLFS with Yocto.Also i did not need this line qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); when testing virtual Keyboard on my side
-
@Ronel_qtmaster Ok, I understand. I think the problem is strictly connected to Wayland (not Eglfs).
The command to run my application is:
./simplebrowser -platform wayland-egl
Not sure I will be able to find a solution. I searched on the web and read several forums. I think no-body is able to run qtvirtualkeyboard on wayland.
-
@Ronel_qtmaster just tried. unfortunately I have the same issue. The virtual keyboard appears for a while and disappears immediately.
-
@Ronel_qtmaster ok. in your opinion, what could I try? I saw this bug report about the virtual keyboard and weston:
https://bugreports.qt.io/browse/QTBUG-94994