Equivalent direct webkit API for QtWebkit functionality
-
hi,
One thing I am not very clear is that. In QtWebKit, there is a method QWebFrame->evaluateJavaScript() ,which can execute javascript. I think the function should be provided by WebKit. But I just cannot find the corresponding API in WebKit...
Thanks for any help!!
Yanke
-
hi,
In QtWebKit, we can use
QWebFrame.documentElement().firstChild()
QWebFrame.documentElement().nextSibling()
QWebFrame.documentElement().tagName()to access DOM. But what is the corresponding API in WebKit... I guess this functions should be provided originally from WebKit?
Thanks for any help!!
Yanke
-
Have you checked the sources? The full source code of both Qt Webkit as well as webkit is available, shouldn't take long to answer your question by looking at both.
-
I have merged two threads by huyanke that both ask for a direct Webkit equivalent for QtWebkit functions. I am not sure this topic belongs here though. What is the relation with Qt?
Edit:
I should say, that I do admire and applaud your curiosity to want to understand the inner workings of the code you are using. -
[quote author="huyanke" date="1305248922"]hi,
One thing I am not very clear is that. In QtWebKit, there is a method QWebFrame->evaluateJavaScript() ,which can execute javascript. I think the function should be provided by WebKit. But I just cannot find the corresponding API in WebKit...
[/quote]If you are about understanding the inner workings of Qt Webkit (what's my suspicion after the two other threads about "QNetworkRequest utilization":http://developer.qt.nokia.com/forums/viewthread/5826/ and "the http connecting module":http://developer.qt.nokia.com/forums/viewthread/5816/), then you would be better asking on the Qt Webkit devlopers' mailing list(s). Most of the guys here are just using Qt Webkit and are not deeply interested in its inner workings, especially not in the original Webkit API.