#include <QtCore/qcoreevent.h> #ifndef QCOREEVENT_H class QEvent{ /* Some contents are skipped to improve readability */ public: enum Type{ /* ... */ GraphicsSceneDragLeave = 166, /* ... */ }; /* ... */ }; #endif // QCOREEVENT_H