I am using raspberry pi 3 with waveshare 3.5 LCD. I have to run my qml app (Qt Quick2) on touch screen. I can run my qml on hdmi with no issues. I have used the LCD-show drivers from http://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A) and was able to switch from hdmi to LCD. Touch and everything else is working well on LCD. I can navigate to start menu, open some apps and can do all other stuff with touch. But still the qml app runs only on hdmi, but can't get into LCD. After searching, I have identified that to get qml on LCD, I need to do hdmi mirroring and by following the instructions from https://github.com/AndrewFromMelbourne/raspi2fb I was able to do the mirroring. Now after doing some settings in /boot/config.txt, I can get the qt/qml app running on full screen. All is well so far. But I am facing a typical issue. The qt app screen is transparent. The moment I try to touch on qt app screen, qt app screen goes into background (only the portion I have touched disappears) and the icons available on desktop are coming into foreground. I have attached the screen shots of the same. As you can see here, even the qt app is running, I was able to see the time bar, network connectivity symbols, Show button, help button etc., on the back end which are present on desktop. The moment I touch some where on qt app, that portion of qt screen is becoming invisible and I was able to see the Rpi desktop image. I have been struggling to identify the problem. But no solution till now.
I am doing the following export statements before running the qt/qml app
Code: Select all
export QT_QPA_PLATFROM=eglfs
export QT_QPA_FB_TSLIB=1
export QT_QPA_EGLFS_TSLIB=1
export QT_QPA_EVDEV_TOUCHSCREEN=/dev/input/event0:rotate=90
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0:rotate=90
export TSLIB_EBDEVICE=/dev/fb1
export TSLIB_TSDEVICE=/dev/input/event0Regards,
Pavan