PDA

View Full Version : Drawing Rich Formatted Text with QPainter



millsks
5th March 2009, 19:43
We have a report that was custom designed with QPainter and am able to add images and draw lines and draw simple plain text, but if i wanted to draw text that was stored in HTML from a QTextEdit, or any other widget that has the ability to display rich text, how would I go about rendering that with the QPainter.

(FYI this is being printed directly to PDF by setting the QPainter's device to a QPrinter)

Thanks in advance to anyone that might be able to point me in the right direction.

:eek:

millsks
5th March 2009, 19:59
nevermind i found a similar post.....thanks though