Important: Please read the Qt Code of Conduct -

LoadFinished() signal not emitted

  • Banned

    I am cliking a link using the below code. Then QWebView is loading a different page. But loadFinished() signal is not emitted. How can I know whether the new page is loaded or not. Please help.
    "var evObj = document.createEvent('MouseEvents');evObj.initEvent( 'click', true, true );this.dispatchEvent(evObj);"

  • Moderators

    you can use the onload javascript event handler for example.
    But note AFAIK this triggers when the source is loaded and not all it's resources (e.g. images).

  • This is just a very rough guess:
    is the object still valid when the event is fired?

    "here": is another post with a (less than perfect) solution.

Log in to reply