hello,
Does anyone have experience using touchscreens with QT?
I've seen lots of talk about how to configure the touchscreen for QT, but once this is done can you treat the touchscreen input just like a mouse with the click events and so on?
Richard
hello,
Does anyone have experience using touchscreens with QT?
I've seen lots of talk about how to configure the touchscreen for QT, but once this is done can you treat the touchscreen input just like a mouse with the click events and so on?
Richard
I am not sure how much it will help, but u can check Tablet demo in Qt Demos -> Widgets
what problem is with touchscreen? process mouse events.
Hi,
[QUOTE]
so from your experience does a touchscreen produce mouse events, such as QEvent::MouseButtonPress, QEvent::MouseButtonRelease, etc?
That's what I want to confirm.
[QUOTE]
As I know, touchscreen only acts as a simple mouse connected to USB or serial port. Don't know why you have to configure touchscreen for Qt. It's just a mouse.
Òscar Llarch i Galán
Hi
I really don't understand why. The OS will process the touchscreen input as a mouse, so if your Qt application is responding to a simple mouse, why you have to configure Qt to use a touchscreen? Do you understand me? It is a MOUSE, the hardware is different but it gets x and y positions to the operating system. Maybe I'm mistaken.On Linux, which is my platform, there is some configuration involved according to the discussions I saw.
Òscar Llarch i Galán
in this thread for example it was said:
Nyaw, thank you for responding but I'm after actual experience. I agree that it should work in theory.my touchscreen is now working. Turns out after a week of debugging all that need to be done was comment out certian lines of code. I commented out anything that had to do with the IPAQ in qmouselinuxtp.cpp but this is the line that was holding everything up.
# if defined(QT_QWS_IPAQ_RAW) || defined(QT_QWS_EBX_RAW)
mousePos = handler->transform( mousePos );
# endif
Hi,
So you are using Qtopia, right? Then I think that you need to configure the touchscreen as you said, but really you are configuring the mouse of the IPAD to be responsing on the virtual framebuffer.
I'm using Qt4 application on Windows using a touchscreen and it acts as a mouse. So I said that it work.![]()
Òscar Llarch i Galán
oh, you're already using it with the mouse API.
Thanks - that's what I wanted to know.
Bookmarks