qt做标定软件,在嵌入式Qt项目上校准和配置evdevtouch

在嵌入式Linux系统icoremx6solo上运行Qt项目时,遇到触摸输入问题。通过QT_LOGGING_RULES发现evdevtouch设备坐标未设置。解决方法是通过内核源码分析,发现无法从用户空间更改设备的校准值。最终通过evgetset工具读取和修改设备的校准参数,包括最小值、最大值等,从而完成触摸屏的校准。
摘要由CSDN通过智能技术生成

I have a Qt project running on a icoremx6solo with linux.

I've setted up the graphics and run the code, but i can't handle touch inputs.

Enabling the input logging with

export QT_LOGGING_RULES="qt.qpa.input=true"

i discovered that the coordinates ar not setted, i think that this is the main problem with that:

qt.qpa.input: evdevtouch: /dev/input/event0: Protocol type B (multi)

qt.qpa.input: evdevtouch: /dev/input/event0: min X: 0 max X: -1

qt.qpa.input: evdevtouch: /dev/input/event0: min Y: 0 max Y: -1

qt.qpa.input: evdevtouch: /dev/input/event0: min pressure: 0 max pressure: 0

qt.qpa.input: evdevtouch: /dev/input/event0: device name: EP0790M09

but i can't find a way to calibrate that evdevtouch.

I tried runnin the executable with -plugin tslib attribute after executing the ts_cali

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值