#include <QtGui/qfontmetrics.h> #ifndef QFONTMETRICS_H class QFontMetricsF{ /* Some contents are skipped to improve readability */ public: class QRectF boundingRect(class QString const & string) const /* ... */ }; #endif // QFONTMETRICS_H