Qt touch inverted

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
3,265件の閲覧回数
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 解決策
2,202件の閲覧回数
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 返答(返信)
2,202件の閲覧回数
contra
Contributor III

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


export QWS_MOUSE_PROTO=tslib:/dev/input/event1

0 件の賞賛
返信
2,203件の閲覧回数
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 件の賞賛
返信