LoadFinished() signal not emitted
-
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] -
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.