#include <QtCore/qcoreevent.h> #ifndef QCOREEVENT_H class QChildEvent: public QEvent{ /* Some contents are skipped to improve readability */ public: QChildEvent(enum QEvent::Type type, struct QObject* child); /* ... */ }; #endif // QCOREEVENT_H