#include <QtGui/qwidget.h> #ifndef QWIDGET_H class QWidget: public QObject, public QPaintDevice{ /* Some contents are skipped to improve readability */ public: void getContentsMargins(int* left, int* top, int* right, int* bottom) const /* ... */ }; #endif // QWIDGET_H