hello all!

I need to know how to load and insert images in QTextBrowser. Using the code below i load the image dynamically from an url eg. http://something/images/image1.gif but, stuck up with how to insert it in the QTextBroswer with the other content of the document using QTextCursor.

QUrl url(iurl);
QVariant cimg = teContent->loadResource(QTextDocument::ImageResource,url);
QImage im = cimg.value<QImage>();


I need to know how to proceed to insert the image? there is a function in QTextCursor to insertImage() which takes an object of QTextImageFormat as the argument.. How to associate the image object with the QTextImageFormat?

Plz help.
Nisha