Solved Using QtVirtualKeyboard
-
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... -
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
, -
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... -
Which demo is it ?
-
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. -
It's not a demo, it's a module
Which version are you using exactly ?
-
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. -
That demo seems to use QtQuick 2 which IIRC should not suffer the troubles you have.
-
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. -
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