Hi,
i would like to download sequentially an unknown number of webpages. So I naturally thought of using a for loop to achieve that.
But the problem is that mainFrame()->load(url) doesn't wait if a previous load was already running for the same QWebPage object. As a consequence the previous download is interrupted and the signal loadFinished is emitted, but when the corresponding slot is executed it appears naturally that the content of the previous webpage is almost empty (at least the information I need is not available...).
At the end of the for loop, only the last download successfully achieves (probably because it is not interrupted...).
I could handle this using a global boolean , but I was wondering if there was a more elegant way to perform what I want using the Qt framework.
Any ideas ?
Bookmarks