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 ?
↧