Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Qt 5.15.2 - QtVirtualKeyboard doesn't work with Wayland-egl
Forum Updated to NodeBB v4.3 + New Features

Qt 5.15.2 - QtVirtualKeyboard doesn't work with Wayland-egl

Scheduled Pinned Locked Moved Unsolved QtWebEngine
9 Posts 2 Posters 2.1k 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.
  • F Offline
    F Offline
    fbelloni
    wrote on last edited by
    #1

    Hi All,
    I would like to integrate the QtVirtualKeyboard in the "simplebrowser" example available in QtWebEngine (Qt 5.15.2).
    My embedded platform is wayland-egl (Linux).

    I added the following line in the main.cpp file:

    int main(int argc, char **argv)
    {
        QCoreApplication::setOrganizationName("QtExamples");
        QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
        QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    
        qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
    
        QApplication app(argc, argv);
        app.setWindowIcon(QIcon(QStringLiteral(":AppLogoColor.png")));
    

    The issue:
    when I run the application "simplebrowser" with the following command:

    ./simplebrowser -platform wayland-egl
    

    I receive the following error:

    qt.qpa.wayland: qtvirtualkeyboard currently is not supported at client-side, use QT_IM_MODULE=qtvirtualkeyboard at compositor-side.

    When I click on the browser url to enter a new url, the virtual keyboard appears for a while and dissappears immediately.

    Any trick to solve this issue?

    1 Reply Last reply
    0
    • Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on last edited by Ronel_qtmaster
      #2

      I think you should try it with another plugin.Is it working with a simple Qt quick app? I have it working well on my rpi with yocto

      F 1 Reply Last reply
      0
      • Ronel_qtmasterR Ronel_qtmaster

        I think you should try it with another plugin.Is it working with a simple Qt quick app? I have it working well on my rpi with yocto

        F Offline
        F Offline
        fbelloni
        wrote on last edited by
        #3

        @Ronel_qtmaster Thank you very much for your feedback. No, I haven't tried with Qt Quick. I will try it. Thank you for the advice.

        • is your RPI a wayland platform?
        • which Qt version are you using?

        Could you provide me some more details on how you have integrate the Qt Virtual Keyboard?

        Thank you a lot for your help!

        Ronel_qtmasterR 1 Reply Last reply
        0
        • F fbelloni

          @Ronel_qtmaster Thank you very much for your feedback. No, I haven't tried with Qt Quick. I will try it. Thank you for the advice.

          • is your RPI a wayland platform?
          • which Qt version are you using?

          Could you provide me some more details on how you have integrate the Qt Virtual Keyboard?

          Thank you a lot for your help!

          Ronel_qtmasterR Offline
          Ronel_qtmasterR Offline
          Ronel_qtmaster
          wrote on last edited by
          #4

          @fbelloni OKay you should try with a simple exemple first
          i am using Qt 5.12 , my raspberry image is mainly running on EGLFS with Yocto.

          Also i did not need this line qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); when testing virtual Keyboard on my side

          F 1 Reply Last reply
          0
          • Ronel_qtmasterR Ronel_qtmaster

            @fbelloni OKay you should try with a simple exemple first
            i am using Qt 5.12 , my raspberry image is mainly running on EGLFS with Yocto.

            Also i did not need this line qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); when testing virtual Keyboard on my side

            F Offline
            F Offline
            fbelloni
            wrote on last edited by
            #5

            @Ronel_qtmaster Ok, I understand. I think the problem is strictly connected to Wayland (not Eglfs).

            The command to run my application is:

            ./simplebrowser -platform wayland-egl
            

            Not sure I will be able to find a solution. I searched on the web and read several forums. I think no-body is able to run qtvirtualkeyboard on wayland.

            Ronel_qtmasterR 1 Reply Last reply
            0
            • F fbelloni

              @Ronel_qtmaster Ok, I understand. I think the problem is strictly connected to Wayland (not Eglfs).

              The command to run my application is:

              ./simplebrowser -platform wayland-egl
              

              Not sure I will be able to find a solution. I searched on the web and read several forums. I think no-body is able to run qtvirtualkeyboard on wayland.

              Ronel_qtmasterR Offline
              Ronel_qtmasterR Offline
              Ronel_qtmaster
              wrote on last edited by
              #6

              @fbelloni i was talking about EGLFS because QML apps should run normally with EGLFS only.That is what is officially stated.Anyway did you try with a simple app?

              F 1 Reply Last reply
              0
              • Ronel_qtmasterR Ronel_qtmaster

                @fbelloni i was talking about EGLFS because QML apps should run normally with EGLFS only.That is what is officially stated.Anyway did you try with a simple app?

                F Offline
                F Offline
                fbelloni
                wrote on last edited by
                #7

                @Ronel_qtmaster just tried. unfortunately I have the same issue. The virtual keyboard appears for a while and disappears immediately.

                Ronel_qtmasterR 1 Reply Last reply
                0
                • F fbelloni

                  @Ronel_qtmaster just tried. unfortunately I have the same issue. The virtual keyboard appears for a while and disappears immediately.

                  Ronel_qtmasterR Offline
                  Ronel_qtmasterR Offline
                  Ronel_qtmaster
                  wrote on last edited by
                  #8

                  @fbelloni then the problem is how you built qtvirtualkeyboard and not absolutely webengine

                  F 1 Reply Last reply
                  0
                  • Ronel_qtmasterR Ronel_qtmaster

                    @fbelloni then the problem is how you built qtvirtualkeyboard and not absolutely webengine

                    F Offline
                    F Offline
                    fbelloni
                    wrote on last edited by fbelloni
                    #9

                    @Ronel_qtmaster ok. in your opinion, what could I try? I saw this bug report about the virtual keyboard and weston:
                    https://bugreports.qt.io/browse/QTBUG-94994

                    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