Qt源代码学习心得之一二

来源:互联网 发布:儿童编程语言 编辑:程序博客网 时间:2024/05/21 07:56
  1. Q_FLAGS、Q_ENUMS用于注册flags、enums到meta-object system,以便在Qt Script中使用,或在Qt Designer中使用。另外,在使用Qt property system时,The enumeration type must be registered with the Meta-Object System using the Q_ENUMS() macro. Registering an enumeration type makes the enumerator names available for use in calls to QObject::setProperty().

原创粉丝点击