You can edit text in QGraphicsTextItem.
Have a look at Diagram Scene example in Qt Demo-->GraphicsView section