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

Kevin Truong knt261 at gmail.com
Fri Nov 20 06:52:56 CET 2015

I have a website that loads resources such as images, iframes, ajax,
scripts, etc.

Running qt web engine on this website, I found a way for the render to time
the exact moment these requests were initiated by subclassing
QWebEngineUrlRequestInterceptor, and passing that class to

However, I would also like to time when these DOM resources finish
downloading as well. This was possible in qt webkit, so I was hoping
there's a way to do it for qt webengine.

One example I thought was the solution is the signal
QWebEngineProfile::downloadRequested(QWebEngineDownloadItem *download).
This signal allows me to access the QWebEngineDownloadItem object, which
signals when the download has finished, which is basically what I am
looking for. However, this signal doesn't ever seem to be executed. I think
it is only run when e.g. a user clicks on a download link, rather than
being run for every DOM resource being loaded.

I spent basically the entire day looking through documentations, but
couldn't find anything. Any help would be appreciated!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20151119/dbb561fa/attachment.html>

More information about the QtWebEngine mailing list