1
0

main_gen_test.cpp 320 B

123456789101112131415161718192021
  1. #include <QObject>
  2. #include "myinterface.h"
  3. class MyObject : public QObject, MyInterface
  4. {
  5. Q_OBJECT
  6. Q_INTERFACES(MyInterface)
  7. public:
  8. explicit MyObject(QObject *parent = 0) : QObject(parent) { }
  9. };
  10. int main(int argc, char **argv)
  11. {
  12. MyObject mo;
  13. mo.objectName();
  14. return 0;
  15. }
  16. #include "main_gen_test.moc"