Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.5.2, 4.8.2
-
None
Description
When using setText to overwrite the content of QTextBrowser, the anchor is not removed properly.
The following code reproduces the bug:
#include <QtGui> #include <Dialog.h> Dialog::Dialog() { QDialog* dialog = new QDialog(); _text = new QTextBrowser(dialog); connect(_text, SIGNAL(anchorClicked ( const QUrl &)), this, SLOT(clicked())); _text->setHtml("This is an <a href=\"http://www.w3schools.com/HTML/html_links.asp\">Anchor<\a>"); dialog->show(); } void Dialog::clicked() { _text->setText("No Anchor"); }