摘要
借助Qt/E的开源版本,分析了信号与槽的实现原理,并且对比"回调函数"机制,分析与测试了信号与槽机制在嵌入式开发平台下的性能.实验和教学实践表明,信号和槽机制通过牺牲部分性能可换取编程的便利性和安全性,在x86或者高性能的嵌入式环境下,这是非常值得的.
In virtue of Qt/E open source edition,this paper emphasizes the principles and implementation of "Signals and Slots" mechanism. Compared with callback mechanism, performance of signals and slots is analyzed and tested under embedded development environment. The experiment indicates that although signals and slots mechanism sacrificed parts of performance, it is worth while to obtain more convenience and security under x86 or high performance embedded environment.
出处
《常熟理工学院学报》
2008年第10期108-112,共5页
Journal of Changshu Institute of Technology
基金
苏州市科技发展计划(工业攻关)项目(SG0704)