Nominate our 2022 Qt Champions!

QGraphicsTextItem edited text

  • Hello everybody,

    I use qgraphicstextitem to set some text on the qgrpahicsscene. I used setPlainText() to add some default text , then I set isMovabale, isEditable and isSelectable flags. With mouse press I add the item(with default text) to scene and I can edit its text, move it etc. After editing the item I want to get its final text but how can I get it? Where is it stored?

  • Lifetime Qt Champion


    Are you thinking of something like toPlainText ?