[Qt-interest] QTextDocument / QTextEdit::toPlainText() and textual representation of images
Wilhelm
wilhelm.meier at fh-kl.de
Tue Apr 5 12:43:10 CEST 2011
Hi all,
if I insert an image into a QTextDocument and retrieve the text via
toHtml() I get the image inside the text as html-code. If I use
toPlainText() I get no representation for the image.
What I want is that the toPlainText() method returns e.g. an identifier
or similar for the inserted image.
I tried using QTextCharFormat and QChar::ObjectReplacementCharacter to
insert the images instead of the overloads QTextCursor::insertImage()
but with no luck.
Any hints?
--
Wilhelm
More information about the Qt-interest-old
mailing list