I'd expect that a regular touch pad would generate mouse events, not touch events...
I'd try it on a device with a touch screen for example, or a with a touch pad which supports multiple touch points.
I'd expect that a regular touch pad would generate mouse events, not touch events...
I'd try it on a device with a touch screen for example, or a with a touch pad which supports multiple touch points.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Hi,
thanks for the feedback.
I tried with a "Logitech Wireless touchpad" (http://www.logitech.com/en-us/mice-p...e/devices/8417)
and I continue to ***not*** be able to catch any of the event
QEvent::TouchBegin
QEvent::TouchUpdate
QEvent::TouchEnd
but just mouse events.
any help to solve this issue, would be much appreciated
thanks in advance
M
bool window::event(QEvent *tevent)
{
....
....
....
return QWidget::event(tevent);
}
Hi,
Any answers for this question? I do have the same problem.
Thanks for your help!
Best Regards,
Kumar
Touch pads are not touch screens. As far as Qt is concerned, touch pads are mouse devices. It is irrelevant that you use them by touching them with your finger; that's a hardware detail.
If you want an app to see touch events, you have to use a touch screen or something that emulates one.
My understanding is that some touch pads are multi touch capable, i.e. like touch screens.
However, Qt is not involved there at all. If the input system does only report mouse events, it only has mouse events to work with.
If the input system reports touch events, then Qt passes those on as well.
Cheers,
_
Yes, I probably should have said " As far as Qt is concerned, if the OS treats a touch pad as a mouse device, then Qt sees only mouse events".
I guess one could write a driver that would treat a touch pad like a touch screen, but a finger is a pretty big and blunt pointing device in relation to the size of the touch pad. (Although the same relative sizes pertain to cell phone screens, I suppose).
Bookmarks