From QTextEdit docs:
QTextEdit can display images (using QMimeSourceFactory), lists and tables.
...
The images identified by image tags are displayed if they can be interpreted using the text edit's QMimeSourceFactory; see setMimeSourceFactory().
What did you try so far?