Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Signal for when a DOM resource finishes downloading?
Forum Updated to NodeBB v4.3 + New Features

Signal for when a DOM resource finishes downloading?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 595 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    knt261
    wrote on last edited by
    #1

    I have a website that loads DOM 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 m_page.profile()->setRequestInterceptor().

    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. the application user clicks on a download link, rather than being run for every DOM resource being downloaded.

    Is there a way I can figure out when a DOM resource finishes downloading? I spent basically the entire day looking through documentations, but couldn't find anything. Any help would be appreciated!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved