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 Qt | Assignee: | 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ø
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Simon Hausmann
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;
}