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

Blackscreen when activating qtvirtualkeyboard in Desktop Mode

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtonpic++qtwidgets
1 Posts 1 Posters 295 Views
  • 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 23 Nov 2022, 14:51 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

    1/1

    23 Nov 2022, 14:51

    • Login

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