Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QVirtualKeyboard on widget-based application on Raspberry pi3
Qt 6.12 LTS is out! See what's new in the release blog

QVirtualKeyboard on widget-based application on Raspberry pi3

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 1.6k Views 2 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.
  • F Offline
    F Offline
    Foufy
    wrote on last edited by
    #1

    Hi,
    I'm trying to understand why the VirtualKeyboard is not working on raspberry pi 3 (running with boot2qt Qt5.12.0) using a widget-based application BUT working with the Qt Quick Virtual Keyboard - Basic Example .
    Is there a difference between QML and Widget plugin?

    In my widget-based application I've the following (work if I compile it on my PC with gcc-64bits)

    in .pro file I just add

    QT       += core gui virtualkeyboard
    CONFIG += disable-desktop
    

    in main.cpp

    int main(int argc, char *argv[])
    {
        qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
    
        QApplication a(argc, argv);
        MainWindow w;
        w.show();
    
        return a.exec();
    }
    

    in mainwindow.cpp

    MainWindow::MainWindow(QWidget *parent)
        : QMainWindow(parent)
    {
        QLineEdit *mLineEdit = new QLineEdit(this);
        setCentralWidget(mLineEdit);
    }
    
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you try to run your application with the QT_DEBUG_PLUGINS environment set to 1 ? That should give you some additional clues about what is happening.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Foufy
        wrote on last edited by Foufy
        #3

        Hi SGaist,
        Thank you I've try the QT_DEBUG_PLUGIN but the virtual keyboard one seems to be properly loaded.
        I found a similar post : https://forum.qt.io/topic/75129/virtual-keyboard-does-not-show-up-in-qwidgets-app-on-rpi-2
        The conclusion is that QVirtualKeyboard doesn't work with EGLFS. It is necessary to add QML part. Very bad! I never used QML

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Foufy
          wrote on last edited by
          #4

          Can somebody give me a quick example of QML using QQuickWidget?

          Thank you

          jsulmJ 1 Reply Last reply
          0
          • F Foufy

            Can somebody give me a quick example of QML using QQuickWidget?

            Thank you

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Foufy Google can: https://doc.qt.io/qt-5/qtquick-quickwidgets-quickwidget-example.html

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            • Login

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