This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/processor-SDK-AM335X:Arago 触摸屏 libinput

Guru**** 2540720 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/600770/linux-processor-sdk-am335x-arago-touchscreen-libinput

器件型号:PROCESSOR-SDK-AM335X

工具/软件:Linux

大家好、

我在将触摸屏事件发送到 QT 应用程序时遇到一些问题。 我可以使用 evtest 或 libinput-debug-events 将传入的触摸事件可视化、因此我知道它们是由驱动程序处理的、但在某种程度上它们没有正确地传输到我的 QT 应用程序。

如何解决此问题?

谢谢你。

此致、

Marc Welleweerd

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Marc、

    尝试导出旋转参数。
    root@AM335x-EVM:~# export QT_QPA_EVDEV_Touchscreen 参数="rotate=180"

    此致、
    Kemal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Kemal、

    您的建议无效。 如果到目前为止发现导出:

    导出 QT_QPA_EGLFS_DEBUG=1
    
    导出 QT_QPA_EVDEV_TOPEN_PARAMETER=/dev/input/touchscreen0
    
    
    
    
    
    
    
    /dev/input/touchscreen0
    
    /dev/input/touchscreen0导出 QT_QPA_GENERICE_plugINs=EvdevTouch:/dev/input/touchscreen0导出 PQ_QPA_EVDEV_INP=1导出 QPA_EVDEV_TOCLINP=/dev/input/by-path/platform-touch_key-event INP=EV_GENERICE_INPUTTOP=:QDevINPUT_INPUT_INPUT_INPUTTOP=QQ_ENGLICES=Q_ENGLICES=QQQ 

    给我:

    文件:///usr/lib/qt5/qml/QtQuick/Controls/MenuBar.qml:155:错误:无法将[未定义]分配给 int
    
    或:
    
    文件:///usr/lib/qt5/qml/QtQuick/Controls/MenuBar.qml:155:错误:无法将[未定义]分配给 int
    无效对象(16)、类型(WL_registry)、消息关闭(uuioiff)
    Wayland 连接遇到致命错误(无效参数) 

    基本 QML 应用中。 (鼠标输入工作正常)

    当我尝试运行基于小工具的应用程序时,QT 应用程序中没有响应(使用鼠标输入有效)