Hi,
I want to paint HTML-formatted text with a QPainter. In Qt3, this was easily done with QSimpleRichText - but I am not sure what the equivalent method is in Qt4.
I have tried using the QTextLayout class, but without success. This code, for example, does not appear to draw anything:
I have tried passing a font to QTextLayout in its constructor, changing the pen used in QPainter, etc, but none of these changes has resulted in drawn text.
Any ideas on where I'm going wrong? :)