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. QWebEnginePage: when is loadFinished() signaled?
Forum Updated to NodeBB v4.3 + New Features

QWebEnginePage: when is loadFinished() signaled?

Scheduled Pinned Locked Moved Solved QtWebEngine
2 Posts 1 Posters 1.7k 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'm trying to create a headless render engine, which serializes whenever loadFinished() is signaled. Because of this, I'd like to understand the details of loadFinished().

    There are many definitions of being "finished" when rendering a page, including:

    1. DOM has been downloaded
    2. DOM has been downloaded, resources specified in the original DOM (as opposed to other scripts or iframes) have been rendered into the page (as used in phantomjs http://phantomjs.org/api/webpage/handler/on-load-finished.html)
    3. The global javascript variable "window" fires the "load" event (see https://developer.mozilla.org/en-US/Add-ons/Code_snippets/On_page_load)

    For QWebEnginePage, is it correct to assume loadFinished() is signaled the same as #2? If not, can anyone share their insights as to what conditions must be filled for loadFinished() to signal?

    Many thanks!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      knt261
      wrote on last edited by knt261
      #2

      I got a reply from the web engine mailing list, and turns out the answer is when both conditions 2 & 3 are met. Documentation: https://code.google.com/p/chromium/codesearch#chromium/src/content/public/browser/web_contents_observer.h&q=file:web_contents_observer.h function:DidFinishLoad&sq=package:chromium&l=197

      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