QPainterPath from QGraphicsTextItem



  • Hello,

    Is there any possibility to get a QPainterPath from a QGraphicsTextItem with rich text ?

    When rendering QGraphicsScene(including QGraphicsTextItem) to a PDF Document all the Text in the Document are vectors.
    So it should be possible.

    Do you have any idea how i can archive this ?



  • There is something more general for fonts:
    @QPainterPath myPath;
    myPath.addText(baseline, myFont, tr("Qt"));@



  • I know this.

    But with Rich text there can be many different fonts even in one line.

    Is there any possibility to get this information and then use the code above ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.