[Qt-interest] Using QMouseEvent as a fallback for QTouchEvent
sarvesh saran
aquarian.thunder at gmail.com
Wed Mar 16 06:42:40 CET 2011
On Tue, Mar 15, 2011 at 11:30 PM, Gabriel M. Beddingfield <
gabrbedd at gmail.com> wrote:
>
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110316/34d5a2d1/attachment.html
More information about the Qt-interest-old
mailing list