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