天天看點

Qt源代碼學習心得之一二

  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().