What kind of content did disappear?
My guess is that the text edit parses the HTML and creates is internal QTextDocument from it. When you call toHtml() it generates new HTML based on that document.
So a roundtrip might not yield the exact document, but it should have the same or very similar rendering.
Cheers,
_
Bookmarks