[Qt-interest] lots of queries on touch functionality/tslib
Sean Harmer
sean.harmer at maps-technology.com
Fri Jan 9 13:06:09 CET 2009
Hi,
Avishek_Sharma wrote:
> Now my questions :)--------------------
> 1)If I build an application using Qt designer(without any use of
> tslib) and create the code as I do for a normal Qt application,will it
> run on touch if I port it to a touch sensitive mobile phone or touch
> sensitive computer?
Yes as long as you are using Qt Embedded AND you have built it with
tslib support AND you tell Qt Embedded that you wish to use tslibs as an
input mechanism at runtime. Take a look at these pages for more info:
http://doc.trolltech.com/4.4/qt-embedded-pointer.html
http://doc.trolltech.com/4.4/qt-embedded.html
>
> 2) How do I configure tslib after downloading it?
What do you mean configure? If you mean calibrate the touchscreen there
is a calibration tool that is built with tslib. Something like
ts-calibrate I think. This generates a calibration file in
/etc/pointercal (from memory).
>
> 3)How do I use it with Qt applications after I configured 'tslib'
> properly(like we include some header files in the application or what?? )
See the instructions in the pages linked above.
>
> 4)Is this feature possible---
> I have a photo gallery created using Qt 3.3(on a linux desktop
> system which doesn't have a touch screen ).If i configure 'tslib'
> properly and make needed changes in code,is it possible that just by
> scrollinbg my mouse up and down,I could increase/decrease the picture
> size??
> I am looking forward to your answers/suggestions and advice.Thanks in
> advance.
You'll probably need to port it to Qt4 and then build it again
Qt-Embedded. Then simply override the mouse handling functions as you
would normally to get the desired behaviour. tslib is essentially
transparent to Qt-Embedded apps. You just receive the usual mouse events
(although without the right mouse button of course)!
HTH,
Sean
More information about the Qt-interest-old
mailing list