Different alignments on the same line in QTextDocument
my problem is that I cannot/don't know how to set different alignments for parts of a text on the same line. Specifically I need to center one part of the line and align right the other part. I don't want to use html because I would have to use it in the entire document (or am I wrong?).
Is there some way to do it?