Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Using QtVirtualKeyboard
Forum Updated to NodeBB v4.3 + New Features

Using QtVirtualKeyboard

Scheduled Pinned Locked Moved Solved QtonPi
18 Posts 2 Posters 8.1k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #8

    So which project are you building ?

    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
    • D Offline
      D Offline
      davidino
      wrote on last edited by
      #9

      Well, actually the project that I started with, qtVirtualKeyboard version 5.1.0, is the same found in https://code.qt.io.
      The fact is that I get different results building and running the same program inside qtCreator, or accomplishing these steps via console.
      In qtCreator, the program starts correctly, but it crashes when I press a text line ("EGLFS: OpenGL windows cannot be mixed with others".)
      With the console, I cannot carry out the make process (error: GLES2/gl2.h: file or directory not found).
      I'm confused about this difference...

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #10

        Qt Creator sets everything up for the Qt version you are using to build your project.

        On the command line, it's up to you to ensure that you are using the correct stuff e.g. the correct qmake,

        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
        • D Offline
          D Offline
          davidino
          wrote on last edited by
          #11

          Hello StGaist, thank you a lot for your answer.
          I found out what was wrong with different qmake output issue. Basically calling qmake from console, I forgot to add -spec linux-oe-g++, as I do in QtCreator. Now both the makefiles generated are the same.
          The problem "EGLFS: OpenGL windows cannot be mixed with others" that makes crash the application, when I try to write in an edit field, remains.
          On internet I still didn't find a suitable solution, but I have been still looking for it...

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #12

            Which demo is it ?

            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
            • D Offline
              D Offline
              davidino
              wrote on last edited by
              #13

              Hello StGaist,
              thank you for your answer. The demo is git://code.qt.io/qt/qtvirtualkeyboard.git.

              The problem is similar to the one described int the following thread regarding combo boxes: https://bugreports.qt.io/browse/QTBUG-38405.
              From a comment of this "bug".
              "Qt Quick Controls 2 is designed for Embedded platforms, unlike Qt Quick Controls 1 which was designed for desktop and mobile first. In Qt Quick Controls 2 Combo boxes work because they don't try to create new native window surfaces on platforms that don't support doing so."

              I think that the problem is that qtvirtualkeyboard demo is designed with QtQuick1, so it cannot work with eglfs as it tries to create a new window. In other words, the demo should be written using Qt Quick Controls 2 for working correctly.
              What do you think about that?
              Thank you for your support.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #14

                It's not a demo, it's a module

                Which version are you using exactly ?

                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
                • D Offline
                  D Offline
                  davidino
                  wrote on last edited by
                  #15

                  Hello StGaist,
                  If I understand the question correctly, I'm using the demo "basic.pro" contained inside git://code.qt.io/qt/qtvirtualkeyboard.git. The version is 5.10
                  Thank you.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #16

                    That demo seems to use QtQuick 2 which IIRC should not suffer the troubles you have.

                    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
                    • D Offline
                      D Offline
                      davidino
                      wrote on last edited by
                      #17

                      Hello StGaist, thank you for your message.
                      I tried to download again the module, compile the demo and I get the same problem.
                      I cannot find anything useful on internet, but I'll keep looking at.
                      Maybe in the future I'll use x11 or wayland, and the problem shouldn't show up.

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        davidino
                        wrote on last edited by davidino
                        #18

                        Hello to all,
                        as far as I can understand, for those people which are using Yocto and want to use QtVirtualKeyboard, they have to install Boot2Qt, which contains recipes for installing the required software and making custom images.
                        See below:
                        http://doc.qt.io/QtForDeviceCreation/qtee-about-b2qt.html

                        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