Qt touch inverted

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

Qt touch inverted

跳至解决方案
3,059 次查看
contra
Contributor III

Hi, I have LTIB building Linux and Qt 4.6.0 for i.MX28 EVK. When running the demos the x and y for the touchscreen are reversed. When I move my finger up and down it moves the cursor left and right. I have calibrated the touchscreen in TSLIB and it works fine when running ts_test.

Can anyone help to fix this in Qt?

标签 (3)
0 项奖励
回复
1 解答
1,996 次查看
edison_fernande
Contributor III

Hi David,

Are you using the QWS_MOUSE_PROTO variable? Something like:

export QWS_MOUSE_PROTO=tslib:/dev/input/event1

You can also make sure your TS is correctly calibrated by doing:

export TSLIB_TSDEVICE=/dev/input/event1

export TSLIB_CONFFILE=/etc/ts.conf

export TSLIB_CALIBFILE=/etc/pointercal

export QWS_MOUSE_PROTO=tslib:/dev/input/event1

just make sure event1 is your TS.

Then run ts_calibrate:

ts_calibrate

And make sure the /etc/pointercal file was created. After this just run your Qt application.

Regards,

Edison

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,996 次查看
contra
Contributor III

Hi Edison, thank you the following line fixed my problem.


export QWS_MOUSE_PROTO=tslib:/dev/input/event1

0 项奖励
回复
1,997 次查看
edison_fernande
Contributor III

Hi David,

Are you using the QWS_MOUSE_PROTO variable? Something like:

export QWS_MOUSE_PROTO=tslib:/dev/input/event1

You can also make sure your TS is correctly calibrated by doing:

export TSLIB_TSDEVICE=/dev/input/event1

export TSLIB_CONFFILE=/etc/ts.conf

export TSLIB_CALIBFILE=/etc/pointercal

export QWS_MOUSE_PROTO=tslib:/dev/input/event1

just make sure event1 is your TS.

Then run ts_calibrate:

ts_calibrate

And make sure the /etc/pointercal file was created. After this just run your Qt application.

Regards,

Edison

0 项奖励
回复