C++ (Qt)void MainWindow::createWindow(QWebPage::WebWindowType type){ qDebug() << "TEST";}
Javathis.myWebView.page().setLinkDelegationPolicy(LinkDelegationPolicy.DelegateAllLinks);this. myWebView.linkClicked.connect(this, "setLink(QUrl)"); public void setLink(QUrl url){ this.myWebView.load(url);}
view->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); connect(view, SIGNAL(linkClicked(QUrl)), SLOT(setLink(QUrl &url)));
void MainWindow::setLink(QUrl url){ view->load(url);}