#include <QtGui/qevent.h> #ifndef QEVENT_H #ifndef QT_NO_DRAGANDDROP class QDropEvent: public QEvent, public QMimeSource{ /* Some contents are skipped to improve readability */ public: void setDropAction(enum Qt::DropAction action); /* ... */ }; #endif // QT_NO_DRAGANDDROP #endif // QEVENT_H