Show virtual keyboard
-
Hello everyone,
Could somebody give me some advice?
I want to create a new control inherits QWidget. I want to add a function to it. That's when it is clicked, the virtual keyboard will show.But I don't know how. Does someone know? Could somebody give some clues?
Thanks in advance.
-
Hi,
Are you looking for the QtVirtualKeyboard module ?
-
Hi
If you dont mean the Qt virtual keyboard, which one do you mean then ?
The build in in windows ?
https://www.youtube.com/watch?v=Yb0Z2BYveOM -
let me refresh the topic instead of creating a new one as I have the same question.
I deployed ubuntu 22.04 onto a RPI4.
There is already a virtual keyboard in standard Gnome session and works with the Ubuntu stock apps (GTK I assume)When I load my project and click in my QLineEdit nothing happens.
Of course I can load qvirtualkeyboard by adding#ifndef Q_OS_WIN qputenv("QT_QPA_PLATFORM", "xcb"); qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); #endif
but then it is not consistent with the whole desktop.
Is it possible to make Qt app to use standard gnome Virtual Keyboard?