Chinaunix首页 | 论坛 | 博客
  • 博客访问: 515704
  • 博文数量: 174
  • 博客积分: 8001
  • 博客等级: 中将
  • 技术积分: 1840
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-04 19:30
文章分类

全部博文(174)

文章存档

2011年(1)

2010年(24)

2009年(149)

我的朋友

分类: LINUX

2009-05-25 20:06:03

The Meta Object System in Qt is responsible for the signal/slot mechanism for communication between objects, runtime type information and the dynamic property system.
元对象系统负责 信号/插槽 机制,用以对象之间的交换,运行时类型信息和动态属性系统。
  • the QObject class,
  • the "Q_OBJECT" macro inside the private section of the class declaration and
  • the Meta Object Compiler (moc).
  • 它包括QObject类型,私有域的Q_OBJECT宏,和元对象编译器。

    The moc reads a C++ source file. If it finds one or more class declarations that contain the "Q_OBJECT" macro, it produces another C++ source file which contains the meta object code for this class. This generated source file is either #included into the class' source file or compiled and linked with the class implementation.

    阅读(889) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~