[Qt-interest] Using QMouseEvent as a fallback for QTouchEvent
Gabriel M. Beddingfield
gabrbedd at gmail.com
Tue Mar 15 19:00:27 CET 2011
How do I detect if there are any "touch" devices currently
connected? If there is none, I want to fall back on mouse
events... but if one is connected I want to use touch
exclusively.
I have an app that is using QTouchEvent for its main logic.
I ignore all mouse events.
However, if Qt doesn't detect any "touch" devices... it
won't send any touch events. In this case, I would like to
fall back on using mouse events.
Is there a straightforward Qt way to do this?
-gabriel
More information about the Qt-interest-old
mailing list