刚刚学QT,在改kiax的源码,其中有一点事件是基于qt3 的,不知道该怎样改写
IaxWrapperEvent * wrapperEvent = new IaxWrapperEvent(e);
// and create a CustomEvent to be posted
QCustomEvent * wev = new QCustomEvent(QEvent::User, wrapperEvent);
/*
we are not allowed to access GUI thread directly from external threads
so, post event to be processed by the GUI thread
*/
QApplication::postEvent(callbackCaller, wev);
return 1;