天嵌 ARM开发社区

 找回密码
 注册
查看: 1407|回复: 1

qt 触摸屏不管用

[复制链接]
冬天 发表于 2014-9-22 21:40:42 | 显示全部楼层 |阅读模式
我的qt触摸屏怎么不管用,我可以确定的是触摸屏是好的?QT用鼠标可以用,就是触摸屏不行。我的QT启动配置有一段是这样的:
if [ -f /sys/devices/virtual/input/input1/uevent ];then
        export set TSLIB_TSDEVICE=/dev/event1
        export set TSLIB_CALIBFILE=/etc/pointercal
        export set TSLIB_CONFFILE=/opt/tslib/etc/ts.conf
        export set TSLIB_PLUGINDIR=/opt/tslib/lib/ts
        export set QWS_MOUSE_PROTO="TSLIB:/dev/event1 Intellimouse:/dev/mouse0"
else
        export set QWS_MOUSE_PROTO="Intellimouse:/dev/mouse0"
        if [ -f /etc/pointercal ];then
                echo only use mouse>console
        else
                echo "1 0 1 0 1 1 65536">/etc/pointercal
        fi
fi
但是我看了根本没有“/sys/devices/virtual/input/input1/uevent”,“/dev/event1”和“/dev/mouse0”。只有上鼠标才会有“/dev/event1”和“/dev/mouse0”,请问应该怎么才能没插鼠标也会有这些文件,怎么解决这个问题啊?
fengyang 发表于 2014-10-21 13:30:37 | 显示全部楼层
给个网址你,上面有方法:http://www.armbbs.net/forum.php? ... 8&highlight=faq
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-17 14:09 , Processed in 1.015625 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表