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. Integrate Tslib with QT
Qt 6.11 is out! See what's new in the release blog

Integrate Tslib with QT

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
tslib touch emb
2 Posts 2 Posters 2.0k 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.
  • D Offline
    D Offline
    drd1988on
    wrote on last edited by
    #1

    Hi

    In my project I am using timesys linux kernel 3.0.

    We are using the Factory for building the filesystem.

    I have enabled the tslib in the build system and i could successfully build the QT and Tslib related things like ts_calibrate,ts_test.

    i have copies ts.conf under /etc and copied ts_calibrate and ts_test under /usr/lib.

    And finally I have copied ts folder and libts-1.0.so.

    By adding below environment variables in /etc/profile

    export QT_QPA_PLATFORM=linuxfb
    export PATH=$PATH:/home:/jre/ejre1.7.0_45/bin/
    export LOG4C_RCPATH=/home/CV1/log4c
    export QT_DEBUG_PLUGINS=1
    export QT_PLUGIN_PATH=/usr/lib/qt/plugins
    export QT_QPA_FONTDIR=/usr/lib/fonts
    export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins/platforms

    export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0
    export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0
    export TSLIB_FBDEVICE='/dev/fb3'
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_TSDEVICE=/dev/input/event0
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_PLUGINDIR=/usr/lib/ts
    export TSLIB_TSEVENTTYPE='INPUT'

    I could successfuly run ts_calibrate and ts_test.

    As a result of running ts_calibrate, a file named pointercal will be generated.

    And when i execute the ts_test I can see that drawing app is working perfectly.

    But concern is that When i tried to load a drawing QT application which is developed by me which is using openGL and frame buffer,the touch is not working as ts_test works.

    I could understand that my QT application is not using the pointercal file.

    Could you please help me to resolve this issue.

    How can i verify whether my test app is using the pointercal file or not?
    Am i missing something??

    Regards

    Divya

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kumararajas
      wrote on last edited by
      #2

      Hi,

      May I ask you, what's in your test application?

      What events you are looking for?

      I guess, tslib, posts the touch events as mouse events to Qt. If you are processing mouse events, then we should analyze in a different way.

      --Kumara

      --Kumar

      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