sujan.dasmahapatra
28th June 2013, 08:41
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.initEven t( 'click', true, true );this.dispatchEvent(evObj);"
);
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.
connect(m_WebView->page()->currentFrame(), SIGNAL(loadFinished(bool)), this,
SLOT(LoadFinishedCB3()));
button_click2.at(48).evaluateJavaScript(
"var evObj = document.createEvent('MouseEvents');evObj.initEven t( 'click', true, true );this.dispatchEvent(evObj);"
);
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.