when used QPainter Object, I can paint a formated text like below:

painter.addText(rect,flags,text);

and text can contain control char like '\n'.

while QPainterPath class does only have a simple interface like:addText(QPoint,QFont,QString).

So, how can't add formarted text to a QPainterPath object?

Thanks!