Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QWebPage cannot load full js staff
beyondfun last edited by
I am using QWebPage to download some page, including the js rendered content. But I found that sometimes, there is some js missing. The content which should be replaced by js rendering result remains empty.
I check the document for QWebPage, I guess I got the answer, "Finally, the loadFinished() signal is emitted when the page contents are loaded completely, independent of script execution or page rendering."
But how can I wait until all script rendering finish.
AcerExtensa last edited by
You can subclass NAM, reimplement createRequest and set it to your QWebPage, count all created requests and wait until all of them are finished.