I'm trying to write a small (windows only) service based on QtService [1] listening for some USB device events. For this, I created a NativeDeviceEventFilter class based on QAbstractNativeEventFilter. It works perfectly when used in a QCoreApplication.
Now, when installing this event filter in my UpdaterService class, it isn't being called. I tried each of: application()->installNativeEventFilter(deviceEvent_); QCoreApplication::instance()->installNativeEventFilter(deviceEvent_); QAbstractEventDispatcher::instance()->installNativeEventFilter(deviceEvent_); both in the service's constructor and start() method, as well as using a local instance of NativeDeviceEventFilter, but none of these worked. The event just isn't registered at all. Has anyone ever done something like this? Or is there another way to receive native messages (MSG structs) in a QtService? Best regards, Julius [1]: https://github.com/qtproject/qt-solutions/tree/master/qtservice
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest