[Qt-interest] HTML formatting tags with QPainter::drawText
Anders Bakken
anders.bakken at nokia.com
Thu Feb 18 01:52:58 CET 2010
On Wed, Feb 17, 2010 at 03:42:50PM +0100, ext Sonic wrote:
> On 02/17/2010 07:56 PM, Andre Somers wrote:
> >
> > Sure. Use a QTextDoment for your rich text, and then use drawContents to
> > render it.
> >
> It works. Thanks. I created a QTextDocument and then called setHtml() to
> set my text.
>
> Thanks,
>
> Syam
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
You could also use QTextLayout if you want something slightly lower
level.
--
Qt Development Frameworks, Nokia, http://qt.nokia.com
Anders Bakken
More information about the Qt-interest-old
mailing list