PDA

View Full Version : How to display in memory image in QGraphicsTextItem



lni
18th February 2010, 13:22
I have an QImage created dynamically.

How do I display it in the QGraphicsTextItem?

Thanks

JohannesMunk
18th February 2010, 14:14
Doesn't that work the usual way, through QTextDocument::addResource?

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

http://wiki.qtcentre.org/index.php?title=Drop_files_and_images_on_QTextEdit

HIH

Johannes

lni
18th February 2010, 15:57
Doesn't that work the usual way, through QTextDocument::addResource?

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

http://wiki.qtcentre.org/index.php?title=Drop_files_and_images_on_QTextEdit

HIH

Johannes

Excellent!Thank you!