Hey everybody! How can I use the macro with qdoc? Such as: I defined a macro with macro-def.h
#define _DECLARE_INT2ENUMSTRING(Enum) \ QString int2string(int value) { \ const QMetaObject* meta = this->metaObject(); \ for (int j = 0; j < meta->enumeratorCount(); ++j) { \ QMetaEnum m = meta->enumerator(j); \ if(QString(m.name()) == QString(Enum)) { \ return QString(m.valueToKey(value)); \ } \ } \ return QString(""); \ } with class header file, I use this macro to define a member function. _DECLARE_INT2ENUMSTRING("BUTTON") so How can I add the comments of this member function? Thanks very much. Best regards. -- 应用部 唐科 TEL : 0512-52308661-88686 FAX: 0512-52308688 MP : 18962393077 E-mail: ta...@lemote.com 地址:江苏省常熟市虞山镇梦兰工业园 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest