QGraphicsTextItem has an embedded QTextDocument. You can manipulate it directly without interfacing the scene.