首页| 论坛| 消息

标题:【提问】关于qt中通信机制的问题。。。
作者:boyb
日期:2005-09-25 17:39
内容:

Qt里的signal--slot机制 和 channel都能够提供不同实体通信的功能,它们有什么区别?
分别适用于什么场合呢?


#1 [myer 09-27 08:17]
Qt里的channel是什么?
楼主用过吗?
#2 [boyb 09-28 22:53]
myer,老大,你是斑竹诶,这个没听过吗?也是一种通信机制,
但不清楚和singnal--slot机制有什么本质区别。。
#3 [XChinux 09-28 23:29]
The QCopChannel class provides communication capabilities between several clients.
The Qt Cop (QCOP) is a COmmunication Protocol, allowing clients to communicate both within the same address space and between different processes.
Currently, this facility is only available on Qt/Embedded. On X11 and Windows we are exploring the use of existing standards such as DCOP and COM.
#4 [XChinux 09-28 23:30]
依上面在Qt Reference里的资料显示,它目前应用在QTE中,而在X11和Windows下面,其表现形式分别为DCOP和COM
#5 [forgotten 10-12 12:19]
copchannel 是进程间的通讯,kde的里面的重要的一个部分。提供了一个lightweight的interprocess communication的方法。主要是存在一个copserver来分发和管理所有的channel消息。
而signal和slot则完全不是什么通讯方式。如果你看了qt的源码,那么你就会很明白,singal和slot就是qt提供的一种多对多的函数callback方式。实现的还是挺巧妙的。

<< 1 2 >> (1/2)

回复 发表
主题 版块