RESOLVED WORKSFORME29455
[Qt] The signal linkCliked is not triggered when loading a local file using QWebView::setHtml
https://bugs.webkit.org/show_bug.cgi?id=29455
Summary [Qt] The signal linkCliked is not triggered when loading a local file using Q...
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.