Eventfilter在imx6的嵌入式Linux上的Qt5.9.2 QML应用程序中未收到任何TouchEnd事件

Eventfilter在imx6的嵌入式Linux上的Qt5.9.2 QML应用程序中未收到任何TouchEnd事件,qml,touch,qt5,imx6,Qml,Touch,Qt5,Imx6,有一块带有linux3.0.35和Qt4.8.5的imx6板。 我已经通过交叉编译Qt5.9.2源代码将Qt4.8.5更新为Qt5.9.2。 QML应用程序可以使用Qt5.9.2生成OK并显示OK。 但触摸无效,尽管触摸显示屏工作正常 登录事件筛选器如下所示: QEvent::Type(ChildAdded) QEvent::Type(TouchBegin) QEvent::Type(TouchBegin) QEvent::Type(TouchBegin) QEvent::Type(TouchB

有一块带有linux3.0.35和Qt4.8.5的imx6板。 我已经通过交叉编译Qt5.9.2源代码将Qt4.8.5更新为Qt5.9.2。 QML应用程序可以使用Qt5.9.2生成OK并显示OK。 但触摸无效,尽管触摸显示屏工作正常

登录事件筛选器如下所示:

QEvent::Type(ChildAdded)
QEvent::Type(TouchBegin)
QEvent::Type(TouchBegin)
QEvent::Type(TouchBegin)
QEvent::Type(TouchBegin)
QEvent::Type(Timer)
QEvent::Type(UpdateRequest)
QEvent::Type(TouchUpdate)
QEvent::Type(ChildAdded)
QEvent::Type(TouchUpdate)
QEvent::Type(ChildAdded)
QEvent::Type(TouchUpdate)
QEvent::Type(ChildAdded)
QEvent::Type(TouchUpdate)
为什么日志中有四个TouchBegin,尽管只有一个touch? 为什么日志中没有任何TouchEnd

附言: 我的交叉编译配置如下:

./configure-release-xplatform linux-arm-gnueabi-g++-no-opengl-opengl es2-prefix~/qt5.9.2-arm-opensource-confirm license-make libs-nomake tools-nomake tests-skip qtandoridextras-skip qtconnectivity-skip qtdoc-skip qtmgamepad-skip qtlocation-skip-qtmacextras-skip-qtnetworkauth-skip-qt采购-qtsensors-skipqtserialbus-跳过qtspeech-跳过qtsvg-跳过qttools-跳过qtwebchannel-跳过qtwebengine-跳过QTWebSocket-跳过qtwebview-跳过qtwinextras-无功能图标-无功能手势-无qml调试


将QT_QPA_GENERIC_插件设置为tslib和evdevkeyboard,但不设置为evdev。 问题解决了

export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/ts0,evdevkeyboard:/dev/input/event6