[SOLVED] QTextBrowser anchorClicked() signal ?
-
I have a QTextBrowser for my application and I have set the urls such as
@textBrowser->append("< href=\http://www.google.com>Google</>"); //removed <a> as it was not showining in preview
textBrowser->setOpenExternalLinks(true);@and connecting using
@connect(textBrowser,SIGNAL(anchorClicked(QUrl)),this,SLOT(onAnchorClicked(QUrl)));@
but when i click on the link the achorClicked signal is not called but the links opens in the browser, what am i doing wrong ?
-
bq. Note that the browser will automatically handle navigation to the location specified by link unless the openLinks property is set to false or you call setSource() in a slot connected. This mechanism is used to override the default navigation features of the browser.