Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Blackscreen when activating qtvirtualkeyboard in Desktop Mode
Qt 6.11 is out! See what's new in the release blog

Blackscreen when activating qtvirtualkeyboard in Desktop Mode

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtonpic++qtwidgets
1 Posts 1 Posters 485 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PaulsWidgets
    wrote on last edited by
    #1

    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.
    Bsp Vkb.png

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved