i currently create a report that is saved in a pdf file using a QPainter. I used QTextDocument earlier, but the layout possibilities were too limited. But now i ran into the problem of creating rich text inside the report. I figured out to have different fields display in different fonts, weights etc. by using painter.setFont() before every change, but found no way to easily display superscripts etc.