Results 1 to 9 of 9

Thread: how to enable touch screen in qt/embedded

  1. #1
    Join Date
    Dec 2006
    Posts
    123
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default how to enable touch screen in qt/embedded

    hi everyone,

    i'm using qt-embedded 3.3.5 version.i need to have a touch screen as my input device. can anyone say me how to enable and use that with qt-embedded applications..? in configure options i searched for any options to enable.there were options for mouse and keyboard. i could not find anything for touch screen...?

    can anyone provide me suggestions/solutions as to how to use that..?

    thanks in advance,
    saravanan

  2. #2
    Join Date
    Dec 2006
    Posts
    123
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: how to enable touch screen in qt/embedded

    hi,

    let me change the question. i have a serial touch screen interfaced to /dev/ttyS1 . how to enable it in qt-embedded-3.3.5 ?
    in the configure option i saw options for USB touch screens (touch screens connected to /dev/input/event0).but there were no options for serial touch screens. i gave "-qt-mouse-linuxtp" in the configure option and export the environment variables as follows:

    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_PLUGINDIR=/usr/lib/ts
    export TSLIB_TSDEVICE=/dev/ttyS1.

    and
    export QTDIR=/usr/local/qt-embedded
    export QWS_MOUSE_PROTO=linuxtp:/dev/ttyS1

    when i execute a qt application , the touch screen did not work and the mouse pointer disappears the moment i touch the touch screen. the following error is displayed :

    "Could not read calibration: /etc/pointercal".

    any suggestions or solutions for this ?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to enable touch screen in qt/embedded

    Quote Originally Posted by sar_van81 View Post
    Could not read calibration: /etc/pointercal
    Does this file exist?

  4. #4
    Join Date
    Dec 2006
    Posts
    123
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: how to enable touch screen in qt/embedded

    hi,

    No, there is no such file in the /etc folder in the board.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to enable touch screen in qt/embedded

    Quote Originally Posted by sar_van81 View Post
    No, there is no such file in the /etc folder in the board.
    Then maybe you should create one?

  6. #6
    Join Date
    Dec 2006
    Posts
    123
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: how to enable touch screen in qt/embedded

    hi ,

    can you say me how to create one ?

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to enable touch screen in qt/embedded

    Google says something about ts_calibrate utility. Do you have it?

  8. #8
    Join Date
    Dec 2006
    Posts
    123
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: how to enable touch screen in qt/embedded

    hi ,

    yeah i searched about that. and it says to use tslib package. i had done that also. the main problem for me is that i had my device connected to "/dev/ttyS1" and the ts_caliberate.c program is used to caliberate the device connected to "/dev/input/event0". can you say me how to convert that with respect to serial port ? if you have any docs for that can you send me ?

  9. #9
    Join Date
    Mar 2011
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to enable touch screen in qt/embedded

    Did you find any success in this?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.