anotherobject.cpp 206 B

123456789101112131415
  1. #include <qobject.h>
  2. class AnotherObject : public QObject
  3. {
  4. Q_OBJECT
  5. public:
  6. AnotherObject() {}
  7. };
  8. AnotherObject* createAnotherObject()
  9. {
  10. return new AnotherObject();
  11. }
  12. #include "anotherobject.moc"