Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView onLoadFinished not always called
Forum Updated to NodeBB v4.3 + New Features

QWebView onLoadFinished not always called

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    dolevo
    wrote on last edited by
    #1

    Hi all,

    I have an application with QWebView and I connect the onLoadFinished slot like the following:

    @ connect(ui->webView, SIGNAL(loadFinished(bool)), this, SLOT(onLoadFinished(bool)),Qt::DirectConnection);
    @

    I load the page in the constructor of the MainWindow. Loading works good, I see that the page loads fine. However, onLoadFinished is not called always. It is called every time in the following scenario,
    The first page loads but no LoadFinished called even if I wait a long time. If I click on a link on the loaded page, I see the the LoadFInished is called immediately for the previous page. So, it is like, page waits for something which is preventing it from finished, whenever I click on a link, it causes to cancel (finish) the page. Therefore, the function is called.

    Strange enough, this phenomena doesn't happen with youtube. So I suspect something with the website. Do you guys have any idea?

    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