PDA

View Full Version : QTextBrowser problem



zgulser
25th September 2012, 17:40
Hi,

I have a simple chat program. Everything seems working fine but links.

If I setOpenLinks as true and if I clicked the link via my textbrowser, everything inside the browser is erased.

I don't have any clear function to empty this area.

Any ideas?

Corpia
25th September 2012, 22:38
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).