Bug 29455

Summary: [Qt] The signal linkCliked is not triggered when loading a local file using QWebView::setHtml
Product: WebKit Reporter: Tor Arne Vestbø <vestbo>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: hausmann, tonikitoo
Priority: P2 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   

Tor Arne Vestbø
Reported 2009-09-18 08:01:28 PDT
This bug report originated from issue QTBUG-2240 <http://bugreports.qt.nokia.com/browse/QTBUG-2240> --- Description --- The signal linkCliked is not triggered when loading a local file using QWebView::setHtml
Attachments
Simon Hausmann
Comment 1 2009-11-25 02:00:35 PST
Works for me using the following test-case: #include <QtGui> #include <QtWebKit> #include <QSignalSpy> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWebView view; QSignalSpy spy(&view, SIGNAL(linkClicked(const QUrl &))); view.setHtml("<a href=\"http://www.webkit.org/\">click me!</a>"); view.page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); view.show(); a.exec(); qWarning() << "clicks:" << spy; return 0; }
Note You need to log in before you can comment on or make changes to this bug.