It would be nice if you have a look at the different QWeb* classes.
http://doc.qt.nokia.com/4.7/qwebpage.html