#include <QtGui/qfont.h> #ifndef QFONT_H class QFont{ /* Some contents are skipped to improve readability */ friend struct QWidget; /* ... */ }; #endif // QFONT_H