[Qtwebengine] How to tell when DOM resources finishes downloading?

Koehne Kai Kai.Koehne at theqtcompany.com
Tue Dec 15 12:01:04 CET 2015



> -----Original Message-----
> From: Kevin Truong [mailto:knt261 at gmail.com]
> Subject: Re: [Qtwebengine] How to tell when DOM resources finishes
> downloading?
> 
> Hi Kai and community,
> 
> I patched QWebEngineUrlRequestInterceptor so that it emits a signal when
> the DOM resource is finished downloading (or if it failed, or if it aborted). I'd
> like to help contribute to the Qt Web Engine project, so I was wondering if I
> can submit my patch for a code review to the repository. Maybe other
> people might find this feature useful.

Honestly speaking I'm not sure how this signal is the right solution in your use case.
After all this will only reflect the state of the network request, while I understood
you want to get notified if the DOM is updated with AJAX requests, right? Since rendering
is done concurrently (in a separate process) there's no guarantee that the page is
rendered when you react to this signal.

Regards


Kai 


More information about the QtWebEngine mailing list