Qt-embedded touch screen can't work on IMX6SLL (Yocto)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Qt-embedded touch screen can't work on IMX6SLL (Yocto)

跳至解决方案
991 次查看
Rock_Lee
Contributor II

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" ?           

    

   

0 项奖励
回复
1 解答
985 次查看
Rock_Lee
Contributor II

 When add QT debug message :  

              export QT_LOGGING_RULES=qt.qpa.input=true

 Have touch message show:              touch.png

在原帖中查看解决方案

0 项奖励
回复
1 回复
986 次查看
Rock_Lee
Contributor II

 When add QT debug message :  

              export QT_LOGGING_RULES=qt.qpa.input=true

 Have touch message show:              touch.png

0 项奖励
回复