#include <QtCore/qobjectdefs.h> #ifndef QOBJECTDEFS_H struct QMetaObject{ /* Some contents are skipped to improve readability */ public: static void connectSlotsByName(struct QObject* o); /* ... */ }; #endif // QOBJECTDEFS_H