I am trying to capture the loadFinished() signal of QWebFrame. check the snippet below
connect(m_WebView->page()->currentFrame(), SIGNAL(loadFinished(bool)), this,
SLOT(LoadFinishedCB3()));
button_click2.at(48).evaluateJavaScript(
"var evObj = document.createEvent('MouseEvents');evObj.initEvent( 'click', true, true );this.dispatchEvent(evObj);"
);
connect(m_WebView->page()->currentFrame(), SIGNAL(loadFinished(bool)), this,
SLOT(LoadFinishedCB3()));
button_click2.at(48).evaluateJavaScript(
"var evObj = document.createEvent('MouseEvents');evObj.initEvent( 'click', true, true );this.dispatchEvent(evObj);"
);
To copy to clipboard, switch view to plain text mode
but this signal is not emitted. I think the currentframe is already loaded. When the button click event is executed a new frame is loaded. But how can I get that frame so that I can connect to loadFinished().
Please help.
Bookmarks