[webkit-qt] QML WebView feature requests

Kenneth Rohde Christiansen kenneth.christiansen at gmail.com
Thu Nov 17 01:44:31 PST 2011


On Wed, Nov 16, 2011 at 10:38 PM, Harri Pasanen <grego at mpaja.com> wrote:
> 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.

Why not reimplement the QNetworkAccessManager? That is what people use
for ebooks etc.

>> > * 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
>



-- 
Kenneth Rohde Christiansen
Senior Engineer
Application and Service Frameworks, Nokia Danmark A/S
Phone  +45 4093 0598 / E-mail kenneth.christiansen at gmail.com

http://codeposts.blogspot.com ﹆﹆﹆


More information about the webkit-qt mailing list