• 4409阅读
  • 1回复

请问一下,事件怎样夸进程呢 [复制链接]

上一主题 下一主题
离线磐石
 
只看楼主 倒序阅读 楼主  发表于: 2009-11-12
如果我在一个应用程序上产生一个事件,怎样才能让其它应用程序接收到呢?
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函数执行完。
不怕做不到,只怕想不到
离线dbzhang800

只看该作者 1楼 发表于: 2009-11-12
跨进程应该去研究 进程间通讯(IPC) 吧
快速回复
限100 字节
 
上一个 下一个