In my application I have one widget on have one QLabel
and Open Google
hyper link .
After clicking on Open Google it redirect to default Brower and open google, but I want open that in My QWebpage
.
I am working on QT based application, I have also include QWebenginewidgets
and it working fine manualy.
CodePudding user response:
Just Disable the openExternalLinks
and activate the signal Widget::on_label_linkActivated(const QString &link)
So you can get hyper link click and link url so you can share that to webview and open that url.
CodePudding user response:
Thanks, It worked
ui->m_note->setOpenExternalLinks(false);
connect(ui->m_note,SIGNAL(linkActivated(QString)),SIGNAL(OpenEmbeddedWebPageSignal(QString)));