Qt touch inverted

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Qt touch inverted

Jump to solution
2,069 Views
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?

Labels (3)
0 Kudos
1 Solution
1,006 Views
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

View solution in original post

0 Kudos
2 Replies
1,006 Views
contra
Contributor III

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


export QWS_MOUSE_PROTO=tslib:/dev/input/event1

0 Kudos
1,007 Views
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 Kudos