gajendran
Posts: 6
Joined: Tue May 14, 2019 10:36 am

Virtual Keyboard with QT Application and Raspberry Pi in fullscreen mode problem

Tue May 14, 2019 11:16 am

I am working with QT 5 on a Raspberry Pi3B+ and Capacitive touch screen. I used the virtual keyboard(matchbox) in my application in fullscreen mode virtual keyboard does not come before the application. It's only running behind my application.
can anyone help me?

User avatar
topguy
Posts: 6526
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Virtual Keyboard with QT Application and Raspberry Pi in fullscreen mode problem

Tue May 14, 2019 12:08 pm

Are you using OpenGL or OpenGLES in Qt ? Is it the standard Qt5 that comes with Raspbian ?


User avatar
topguy
Posts: 6526
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Virtual Keyboard with QT Application and Raspberry Pi in fullscreen mode problem

Wed May 15, 2019 12:19 pm

How do you start "matchbox" ? system() call ? Some Qt process class ?

gajendran
Posts: 6
Joined: Tue May 14, 2019 10:36 am

Re: Virtual Keyboard with QT Application and Raspberry Pi in fullscreen mode problem

Thu May 16, 2019 4:25 am

using QProcess to call Keyboard with the following script

Script :-

#!/bin/bash
sudo florence # -s 500x200

gajendran
Posts: 6
Joined: Tue May 14, 2019 10:36 am

Re: Virtual Keyboard with QT Application and Raspberry Pi in fullscreen mode problem

Thu May 16, 2019 5:07 am

we tried system function also but the onscreen keyboard does not come before application fullscreen mode

system("keyboard.sh")

User avatar
topguy
Posts: 6526
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Virtual Keyboard with QT Application and Raspberry Pi in fullscreen mode problem

Thu May 16, 2019 10:46 am

There is this X11 utility call "xdotool" that can manipulate windows on the desktop.
http://linuxcommandlibrary.com/man/xdotool.html

You could add that to your script.

Return to “General discussion”