Doesn't that work the usual way, through QTextDocument::addResource?

You can access the document through QGraphicsTextItem::document() .

http://wiki.qtcentre.org/index.php?t...s_on_QTextEdit

HIH

Johannes