首页| 论坛| 消息

标题:【提问】两个独立Qt程序之间怎么通信啊?
作者:alycq
日期:2005-11-09 16:56
内容:

有两个qt的程序
想让其中一个进行操作时,
另外一个程序能够得到这个消息
怎么做好啊?
是不是要用共享内存?管道??


#1 [tdrhsb 11-09 22:51]
在qtopia里面有QCop机制专门用于不同进程之间的通信,qt里面就不知道了
#2 [XChinux 11-09 23:04]
The DCOP (Desktop Communications Protocol) software was developed to provide
a very simple method of establishing interprocess communications among a group
of processes. All communications pass through a daemon process called dcop
server. A process wishing to send or receive messages first registers its name
with dcopserver, and other processes can then address messages to it by
sending them to that name in care of the dcopserver.
DCOP is actually a simple form of an RPC (Remote Procedure Call) mechanism.
A message is sent in the form of a function call that may or may not require
arguments, and may or may not return a value.
#3 [alycq 11-10 00:00]
好像在qt4中没有发现dcop的
除了一个QCopChannel,但是这个只能在Qt/Embedded中用,
X11和windows下该用什么啊?
#4 [myer 11-10 09:17]
用共享内存,或者socket
其实这个和Qt关系不大了。

回复 发表
主题 版块