#include <QtGui/qtextlayout.h> #ifndef QTEXTLAYOUT_H class QTextLine{ /* Some contents are skipped to improve readability */ public: inline qreal cursorToX(int cursorPos, enum QTextLine::Edge edge = QTextLine::Leading) const /* ... */ }; #endif // QTEXTLAYOUT_H