[webkit-qt] QML WebView
grego at mpaja.com
Wed Feb 22 00:11:42 PST 2012
Back in November I tried to intercept linkClicked signal by writing my
own QML WebView component, as it is not exposed by QML.
Unfortunately writing your own is difficult as the classes one needs to
subclass are private. Even minimal change did not work on N9 phone.
I now tried to go around the problem by installing my own
QNetworkAccessManager and intercepting createRequest.
That brought along it's own can of worms, but I managed to sort
them out eventually.
When QML WebView displays a document with anchors, the
anchor click is not passed to createRequest, probably because the
WebView already has the document. But the display does not
update either, it does not scroll to anchor.
This can bee seen in
Open for instance http://en.wikipedia.org/wiki/Algebra
and try clicking on Contents: Abstract algebra
I don't see any obvious way to enable following anchors either from outside,
as I don't even know that a link has been clicked.
Only thing I can think of is massaging the CSS/html of the page itself to
Is there any other way, what are my options?
More information about the webkit-qt