You can use a QTextDocument

Or, did you know you can just add QLabels too?