Hello,

I have a sql database with the following tables:
table content
id integer, content text
table images
id integer, shortname text, data blob

The following snippet is from content.conten:
Qt Code:
  1. This is an example text with an image :img1. The text is very senseless. Here another image :img2.
To copy to clipboard, switch view to plain text mode 
I have to replace the ":img(id)" keywords by the correct image.
I generate a QPixmap of each image by QPixmap::loadFromData(const QByteArray&). To show them in a QLabel inline the text module doesn't seem possible. I see no way to create a QLabel for each text module and each image. (IMHO would it be very bad design)
Maybe QTextBrowser could be the right GUI element but sometimes I have to replace only the images on user input. Do I use a QTextDocument than?
What other possibilities I have to display the information to the user?

Bye