[Qt-interest] tslib usage

Lorn Potter lpotter at trolltech.com
Mon Jan 12 23:55:48 CET 2009


Avishek_Sharma wrote:
> Hi everyone,
>    I am stuck on 'tslib' and can't make any sense of  what it is or how to use it.Please advice on how to
>    proceed.
>    I am working on a photo gallery which was developed on Qt designer 3.3 (Linux).
>   Since,I am working on Linux,I guess I don't have to download 'tslib' separately(or ,do I have to download it separately).Also, if it comes built in with Linux,do I need to configure it(I keep on reading 'configure tslib before using it with Qt',how do we do that,any specfic code for that?)
> 
> Last of all,say I have a  simple application like, I Click on the button and the message 'Hi' is displayed on the screen(On a text label).
> How do I use tslib in it so that it works on a touchscreen phone ?
> 
> Looking forward to your replies/suggestions.
> Thanks in advance.
> Avi

tslib is a library and utilities for reading touchscreen events and smoothing them out.
You need a touchscreen display.

Desktop linux usually does not come with tslib, rather it is used on touchscreen devices such as
Sharp Zaurus and Nokia n810.

You can download the source for it here
http://tslib.berlios.de/

The tslib plugin in Qt will act like a mouse, so once you get tslib and the plugin working, you wont
usually have to do much more.

It might already come with your cross toolchain for your touchscreen device.

-- 
Lorn 'ljp' Potter
Software Engineer, Systems Group, Qt Software, Nokia Pty Ltd





More information about the Qt-interest-old mailing list