Hi,
See QRectF QQuickTextPrivate::setupTextLayout(qreal *const baseline) for the related code. It uses QTextLayout and QTextLine internally, along with some geometry constraints implied by the geometry of the QQuickText instance properties.
Beware, though: text layout code often involves dragons.
Kind regards,
Chris Adams.
http://www.qinetic.com.au/ – Qt & QML User Experience Specialists
↧








