[webkit-qt] QML WebView feature requests
Harri Pasanen
grego at mpaja.com
Wed Nov 16 13:38:43 PST 2011
On Wednesday, November 16, 2011 10:06:33 AM you wrote:
> Hi there,
>
> On Tue, Nov 15, 2011 at 5:27 PM, Harri Pasanen <grego at mpaja.com> wrote:
> > Hi,
> >
> > Putting on my wishing cap, I'd like the next for Christmas :-)
> >
> > * onLinkActivated signal, as we have in QML Text
>
> How is this different from a signal when a load gets committed?
> Explain the use-case.
well, for me the urls are database keys, so I need to intercept the click and
ask an underlying database to come up with the html to render.
>
> > * Way to inherit WebView in C++ to implement additional features in
> > custom QML element. As I explained in previous mails, I tried copying
> > qdeclarativewebview_p.h and qdeclarativewebview.cpp to my project and
> > customizing those, but I never could get it to work on Harmattan even if
> > it did work fine on Linux desktop.
>
> Why is this needed? Can't you just expose another C++ class? What is
> it that you are trying to implement?
It was principally the need to get access to clicked url to intercept and
redirect it's loading. But also I access selectedText of QWebView, history of
QWebPage etc.
As I explained, I tried to expose another C++ class that was a variation of
QDeclarativeWebView, but for some reason I did not manage to make it work on
Harmattan (N9 phone), even if it worked fine on desktop.
-Harri
More information about the webkit-qt
mailing list