Hi,
I build Yocto with QT as below:
DISTRO=fsl-imx-fb MACHINE=imx6sllevk bitbake fsl-image-qt5-validation-imx
Burn this image in IMX6SLL board, and run below QT test app, but touch screen have no any response:
root@imx6sllevk:~# /usr/share/examples/widgets/widgets/calculator/calculator
The QT env settings are:
export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
export QTDIR=/usr/lib
export QT_QPA_FONTDIR=$QTDIR/fonts
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins/platforms
export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/event1
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1
The touch event does work when touch in console command:
root@(none):/# cat /dev/input/event1 | hexdump
0000000 a265 4eff a510 0000 0001 0145 0001 0000
0000010 a265 4eff a510 0000 0001 014a 0001 0000
0000020 a265 4eff a510 0000 0003 0039 0000 0000
How can I debug this issue "why touch can't work in QT app" ?
已解决! 转到解答。