关于在Qtservice中使用winEventFilter 的疑问?
winEventFilter 可以捕捉Windows事件,在普通的Qt GUI程序中都工作正常,通过从QApplication继承一个类,然后实现虚函数winEventFilter 即可。但是Qtservice是一个模版类,也是来自QApplication,编译器说Q_OBJECT不支持模版类,所以不能使用Q_OBJECT.这样winEventFilter 不能截获任何事件,真是令人发愁啊,有谁知道这方面的问题,请给一点建议或提示。qtservice is a template <typename Application> class ,not support by Q_OBJECT macro. so if use winEventFilter ,you can not catch any event ,somebody know about this? pls give some advise,thanks。