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