How to use QWebPage::OpenLinkInNewWindow?
-
Hey there,
I would like my web browser to open a link in a new window and I noticed this: QWebPage::OpenLinkInNewWindow.
I have connected the signal and slot, but I am unable to open the link. I believe this has to do with a limitation of the triggered() signal. Does anyone know how I can get the link to go to the slot?
Heres the code:
@
connect(webView->pageAction(QWebPage::OpenLinkInNewWindow), SIGNAL(triggered()), mainView_object_pointer, SLOT(newWindowLink(QUrl url)));
@thanks!
-
haven't actually tried it, but I think what you're looking for is
@
QAction * QWebPage::action ( WebAction action ) const
@
and
@
void QAction::setData ( const QVariant & userData )
@