[Qt-interest] Events in Qt event loop vs Windows event loop for a USB/HID device

Serge Briskin serge at cine-flow.com
Mon Sep 21 05:01:07 CEST 2009


Hi,

I'm trying to write a module to communicate with a USB device using HID
class. I searched the net, got a few useful examples,
followed in their footsteps (I think). I reimplemented the
winEventFilter(MSG*, long*), where I put the Windows event loop code
taken from a working Windows app. The problem I'm facing is that some events
seem to get through to the code in the
winEventFilter function, whereas others do not. E.g., I get events for
WM_DEVICECHANGE (when you plug/unplug a USB
device), but I do not get any events for e.g. WM_INITDIALOG or WM_COMMAND -
I suspect they get intercepted by the Qt
app event loop, and never get through.
Any help / advice / insight / hint will be greatly appreciated.

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090920/8ac0c336/attachment.html 


More information about the Qt-interest-old mailing list