main.cpp.in 302 B

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