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.
    [code]
    button_click.at(48).evaluateJavaScript(
    "var evObj = document.createEvent('MouseEvents');evObj.initEvent( 'click', true, true );this.dispatchEvent(evObj);"
    );
    [/code]


  • Moderators

    you can use the onload javascript event handler for example.
    @
    document.onload=myScript();
    @
    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":https://qt-project.org/forums/viewthread/29359 is another post with a (less than perfect) solution.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.