[SOLVED] QPainter, drawText and HTML
-
Hi,
I was wondering if QPainter::drawText was capable of marking up any HTML that was passed to it. My specific situation is that we have a custom-designed tooltip being drawn with QPainter and the non-breaking space characters we pass to the drawText function are not being marked up. Can anyone shed some light on this please?
-
No, QPainter::drawText does not support HTML. You will need to use QTextDocument for that if limited HTML support is enough for you, or QWebPage if you need "all" of HTML.
-
Hi Andre,
Thanks a lot. I''l do that.