#include <QtGui/qdockwidget.h> #ifndef QDYNAMICDOCKWIDGET_H #ifndef QT_NO_DOCKWIDGET class QDockWidget: public QWidget{ /* Some contents are skipped to improve readability */ protected: virtual void closeEvent(struct QCloseEvent* event); /* ... */ }; #endif // QT_NO_DOCKWIDGET #endif // QDYNAMICDOCKWIDGET_H