main.cpp.in 354 B

12345678910111213141516171819202122232425
  1. #include "test1.h"
  2. #include "plainobject.h"
  3. extern int qInitResources_res1();
  4. class Test2 : public QObject
  5. {
  6. Q_OBJECT
  7. public slots:
  8. void onTst1() {}
  9. };
  10. int main()
  11. {
  12. // Fails to link if the rcc generated symbol is not present.
  13. qInitResources_res1();
  14. Test1 test1;
  15. Test2 test2;
  16. PlainObject plainObject;
  17. return 0;
  18. }
  19. #include "main.moc"