如果我在一个应用程序上产生一个事件,怎样才能让其它应用程序接收到呢?
void QCoreApplication::postEvent ( QObject * receiver, QEvent * event ) [static]
bool QCoreApplication::sendEvent ( QObject * receiver, QEvent * event ) [static]
这两个函数中的receiver怎么定义
哪位大哥帮忙回答一下,谢谢!
void QCoreApplication::postEvent ( QObject * receiver, QEvent * event ) [static]
Adds the event event, with the object receiver as the receiver of the event, to an event queue and returns immediately. // 发送事件后立即返回,不等待执行结果
bool QCoreApplication::sendEvent ( QObject * receiver, QEvent * event ) [static]
Sends event event directly to receiver receiver, using the notify() function. Returns the value that was returned from the event handler. // 发送事件后等待直到事件接收者的slot函数执行完。