#include <QtGui/qwidget.h> #ifndef QWIDGET_H class QWidget: public QObject, public QPaintDevice{ /* Some contents are skipped to improve readability */ protected: QWidget(struct QWidgetPrivate& d, class QWidget* parent, Qt::WindowFlags f); /* ... */ }; #endif // QWIDGET_H