Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-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

    Hi,

    Are you thinking of something like toPlainText ?