[Qt-interest] How to know when a web page is loaded when using QtWebKit?
rajasekharan
websweetweb at gmail.com
Thu Aug 20 15:34:14 CEST 2009
You could use a thread to monitor some Javascript variable. That is if
you are able to change the web pages that will
be displayed. Use QWebFrame::evaluateJavascript() to get the result and
use that to fire some signal to call your
method that handles the event.
Piotr Dobrogost wrote:
> Andrew Hodgkinson wrote:
>
>
>> The possibilities for external data loading with JavaScript are almost
>> boundless. Scripts may fetch data indefinitely, e.g. repeatedly replace
>>
> (...)
>
> Thanks for your comments. They all are valuable and it seems all are true.
> Having said that I have to find a way to get the data in my case :) I
> think it could be possible because
> 1. I don't deal with unknown sites but work with given, well known set
> of sites.
> 2. Ajax calls used by sites are "well defined" in this they are used
> only to retrieve data requested by user. There's one such a call per
> page and this call is triggered by submitting a form by user. There are
> no timers and no following refreshes once data have been fetched.
>
> Any ideas?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090820/72c96a26/attachment.html
More information about the Qt-interest-old
mailing list