PDA

View Full Version : How to find out if QWebFrame::evaluateJavaScript has finished executing



javimoya
30th December 2010, 03:04
Hi !

I have an evaluateJavaScript function in my project that executes javascript which makes an asynchronius request. Is there a way to make the program aware when the response to this request is received?

I had tried all this signals:
connect(&m_page, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool)));
connect(&m_page, SIGNAL(linkClicked(QUrl)), this, SLOT(linkClicked(QUrl)));
connect(&m_page, SIGNAL(contentsChanged()), this, SLOT(contentsChanged()));
connect(&m_page, SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest)));
connect(&m_page, SIGNAL(unsupportedContent(QNetworkReply*)), this, SLOT(unsupportedContent(QNetworkReply*)));
connect(&m_page, SIGNAL(frameCreated(QWebFrame*)),this,SLOT(frameCr eated(QWebFrame*)));

but no one help me.

Thanks in advance