Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Touchscreen issue with tslib1.4, please kindly help this.

Touchscreen issue with tslib1.4, please kindly help this.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 965 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Simon.ChenS Offline
    Simon.ChenS Offline
    Simon.Chen
    wrote on last edited by
    #1

    Dear all,

    I have faced an issue with the tslib1.4 with qt4.8.6.

    1. i have compile and install tslib1.4, and copy the tslib/lib to my embedded board. i run ts_calibrate and ts_test. They all works well.

    2. i compile qt4.8.6 with -qt-mouse-tslib, and copy the libs to the embedded board. and set all necessary environment variables.
      run the demo app calculator, from ./example/widget/calculator. the calculator show up, but not response when touch the screen.

    3. i use the "dexdump /dev/input/touchscreen0", it had outcomes.

    4. when i set
      export QWS_MOUSE_PROTO="MouseMan:/dev/input/mouse0"
      it had response when i touch the screen, but the X/Y coordinate seems not correct. because the cursor moved not exactly where i touched.
      but when i set :
      export QWS_MOUSE_PROTO="Tslib:/dev/input/touchscreen0"
      the touchscreen did not reponse.

    5. cat both /dev/input/touchscreen and /dev/input/mouse0, they all have outcomes when i touch the screen. but there is not mouse exist,

    could any one help me on this?
    Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you also set all the Tslib environment variables before running your application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • mkrrM Offline
        mkrrM Offline
        mkrr
        wrote on last edited by
        #3

        I solved my problem on QT 4.8 using this:
        export QWS_MOUSE_PROTO="linuxinput:/dev/input/touchscreen0"

        I used "linuxinput" instead of "tslib".

        If you execute "ts_test", the touch works?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved