- 论坛徽章:
- 0
|
本帖最后由 Panizzi 于 2010-03-30 15:40 编辑
ubuntu 9.10 + X11 + qt4.5
根据X文档:Only the error-handling routine XErrorHandler (or the one you define) receives error events.
These events cannot be selected or received by windows.
根据qt文档:bool QWidget:: x11Event ( XEvent * event ) [virtual protected]
This special event handler can be reimplemented in a subclass to receive native X11 events passed in the event parameter.
现在我需要在qt线程里自定义一个XErrorHandler(my_error_handler),并接收可能出现的XErrorEvent,
现在问题在于,如果我重写x11Event方法,那么我根本无法通过XEvent type去选择到XErrorEvent(X不提供该mask);
试验了好久也没出来,哪位英雄有过类似在经验还望指教。
谢过先。 |
|