Qt中的元对象系统.docVIP

  • 14
  • 0
  • 约1.18万字
  • 约 10页
  • 2016-11-28 发布于河南
  • 举报
Qt中的元对象系统

Qt中的元对象系统 moc 什么是元对象? In computer science, a metaobject or meta-object is any entity that manipulates, creates, describes, or implements other objects. The object that the metaobject is about is called the base object. Some information that a metaobject might store is the base objects type, interface, class, methods, attributes, variables, functions, control structures, etc. 在计算机科学中,元对象是这样一个东西:它可以操纵,创建,描述,或执行其他对象。元对象描述的对象称为基对象。元对象可能存这样的信息:基础对象的类型,接口,类,方法,属性,变量,函数,控制结构等。 QT中的元对象系统 QT中的元对象系统基于以下三种东西: 1. QObject 提到这个类,相信大家都不陌生。几乎所有在QT开发的类都继承于此类。 QObject这个类为其他需要用到元对象系统的类提供了一个基类。 2.Q_OBJECT 放在类声明

文档评论(0)

1亿VIP精品文档

相关文档