The Text Object example shows how to insert an SVG file into a QTextDocument.