#include <QtGui/qfontmetrics.h> #ifndef QFONTMETRICS_H class QFontMetrics{ /* Some contents are skipped to improve readability */ public: int width(class QString const &, int len = -1) const /* ... */ }; #endif // QFONTMETRICS_H