You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, October 9th 2005, 3:26am

Qpe-1.7.0/What can I use the touch screen?

Hi,
What can I use the touch screen in the qtopia?The manufacturer of the touch screen I used is Samsung,What can I do it in the qtopia?
Thanks

2

Monday, October 10th 2005, 9:52am

RE: Qpe-1.7.0/What can I use the touch screen?

First you need to activate TS support in your kernel. Check for touchscreen options in hte kernel configuration or add a module matching your TS.
Then you add native touchscreen support to your QT/e library by addapting the kernel/qws_mouse...blahqws.cpp (forgot the filename, but this is also mentioned in the documentation, grep for CUSTOM and TOUCH) file to your needs and voila, you're done.
Another option would be compiling tslib and link it with your QT/e library.
This should point you in the right direction. Feel free to come back if you have any more specific questions...
There's no place like ::1

3

Monday, October 10th 2005, 1:03pm

RE: Qpe-1.7.0/What can I use the touch screen?

I had put the file about touchscreen in the kernel.And I found that there disable COUSTOMTOUCH in the qwsmouse_qws.cpp file.
How I build the lib about touchscreen?And could you give me some files about the touchscreen to refer to?Thank you again.

4

Monday, October 10th 2005, 2:55pm

RE: Qpe-1.7.0/What can I use the touch screen?

After you activated the touchscreen driver in the kernel you should have two new input devices in /dev/input: ts and tsraw.
In qwsmouse_qws.cpp you uncomment the #define CUSTOMTOUCHPANNEL line and edit the custom touchpanel section protected by the #ifdef CUSTOMTOUCHPANEL statement, adding the correct device, screen size and some mapping parameters, then you recompile the library and start your program with ./yourapp -qws -qwsmouse:CustomTouchpanel (or what's its name; haven't got the documentation by hand right now)
That's all. Maybe you need some further adhustments to calibrate the panel, but in basic it should work. Try adding some QWarnings or printf's to the mouse event handler to see the alignment and value range...
There's no place like ::1

5

Friday, April 7th 2006, 8:39am

Thanks

Thank you evry much!

sar_van81

Trainee

  • "sar_van81" is male

Posts: 52

Location: India

Occupation: Embedded Programmer

  • Send private message

6

Monday, February 12th 2007, 7:14am

RE: Qpe-1.7.0/What can I use the touch screen?

hi zztop,

i'm using qt-embedded-3.3.5. are the above procedures u told appply to qt/embedded also or are they specific to qtopia alone . also u spoke of two option-one is enabling touch screen in kernel .another is compiling tslib and linking to qt/embedded. i have some doubts. should i require to do both or anyone is enough for getting touch screen to work with qt-embedded?


thanks in advance,
saravanan
saravanan