Hi,
Did you try textBrowser.setOpenLinks(false); and use a slot as void anchorClicked(const QUrl &link) which will be connected to the signel SIGNAL(anchorClicked(QUrl)) in your textBrowser. It works fine beacause the textBrowser don't clear no more and at the same time you'l receive and treat the clicks on links (excuse my bad english).