• 8519阅读
  • 4回复

【提问】两个独立Qt程序之间怎么通信啊? [复制链接]

上一主题 下一主题
离线alycq
 
只看楼主 倒序阅读 楼主  发表于: 2005-11-09
有两个qt的程序
想让其中一个进行操作时,
另外一个程序能够得到这个消息
怎么做好啊?

是不是要用共享内存?管道??
[ 此贴被XChinux在2005-11-14 20:32重新编辑 ]
离线tdrhsb
只看该作者 1楼 发表于: 2005-11-09
在qtopia里面有QCop机制专门用于不同进程之间的通信,qt里面就不知道了
离线XChinux

只看该作者 2楼 发表于: 2005-11-09
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.
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线alycq
只看该作者 3楼 发表于: 2005-11-10
好像在qt4中没有发现dcop的
除了一个QCopChannel,但是这个只能在Qt/Embedded中用,
X11和windows下该用什么啊?
离线myer

只看该作者 4楼 发表于: 2005-11-10
用共享内存,或者socket
其实这个和Qt关系不大了。
http://user.qzone.qq.com/56430808
快速回复
限100 字节
 
上一个 下一个