Hi,
Thanks both of You! So what which solutions is better? Let's say I want to draw a text("upper <sub>lower</sub>"at QPointF(10,10). How to use QTextlayout to do this? I am not quite sure.
Let's say that I set a var containing my text like this:
Qt Code:
text->setHtml("upper<sub>lower</sub>");To copy to clipboard, switch view to plain text mode
and now I need to draw the text in QPointF(10,10);
Isn't there a simpler way than using your function Uwe? Just wondering.
Thanks.
Maverick
Bookmarks