Blackscreen when activating qtvirtualkeyboard in Desktop Mode
Unsolved
General and Desktop
-
When implementing a virtual Keyboard in my Programm it takes up the whole Screen and blocks my own GUI. I use the Desktop Implementation of the virtual keyboard in my QtWidget based Application that is running on a Raspberry Pi. I am running Qt 5.15.2 with qtvirtualkeyboard 2.2.
This is how the Keyboard is implementet in my main.cpp.
#include "mainwindow.h" #include <QApplication> #include <QTranslator> #include <QLoggingCategory> int main(int argc, char *argv[]) { //um das Modbusprotokoll komplett zu debuggen kann die nachfolgende Zeile einkommentiert werden. //QLoggingCategory::setFilterRules(QStringLiteral("qt.modbus* = true")); #ifdef LINUX qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); qputenv("QT_LOGGING_RULES", QByteArray("qt.virtualkeyboard=true")); #endif QApplication a(argc, argv); QTranslator translator; translator.load(QLocale(),"modbusReader","_","."); a.installTranslator(&translator); MainWindow w; w.show(); return a.exec(); }
And this is how the Keyboard is shown- As you can see it covers the whole screen.