migel
26th September 2011, 11:50
Hi
When set to QWebPage::DelegateAllLinks a clickLink signal is taking over the click. But how to actually continue loading the link. So let say when I click on link it opens the url normally but in the background do some job through linkClicked ignal/slot yet ???
Thanks
connect(this, SIGNAL(linkClicked(const QUrl &)), SLOT(linkIsClicked(const QUrl&)),Qt::DirectConnection);
this->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks );
Added after 1 23 minutes:
answer
void CLASS:linkClicked(const QUrl&) {
load(url);
}
When set to QWebPage::DelegateAllLinks a clickLink signal is taking over the click. But how to actually continue loading the link. So let say when I click on link it opens the url normally but in the background do some job through linkClicked ignal/slot yet ???
Thanks
connect(this, SIGNAL(linkClicked(const QUrl &)), SLOT(linkIsClicked(const QUrl&)),Qt::DirectConnection);
this->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks );
Added after 1 23 minutes:
answer
void CLASS:linkClicked(const QUrl&) {
load(url);
}