[Qt-qml] Using lineHeight/lineHeightMode with Rich Text in Text Elements

Mark Tucker mark.tucker at airborne.aero
Tue Feb 28 18:04:46 CET 2012


Hello All,

 

I've encountered an issue with QML whereby I have some text strings that
require some superscript characters in them - I've wrapped these
characters with the <sup></sup> tags, and everything then works nicely.
Now I assume that because of the tags, the text is being treated as Rich
Text.

 

The problem I then have is that Text elements that are in Rich Text mode
then totally ignore the lineHeight/lineHeightMode properties, and there
seems to be no way of specifying this with HTML either, as the css
property "line-height" isn't mentioned as a supported property on the
supported HTML subset page [1].

 

If I remove the <sup> tags then things work as I expect and the
lineHeight is taken into account.

 

Anyone got any ideas how I can mix these two?

 

I'm using Qt 4.7.4.

 

Thanks

 

Mark

 

[1] http://developer.qt.nokia.com/doc/qt-4.8/richtext-html-subset.html

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20120228/db115136/attachment.html 


More information about the Qt-qml mailing list