Hi
I’m trying to do some preloading of web pages behind the scenes, and then cache everything to display later.
I tried directly creating a QWebPage without displaying it, but that caused some pretty bad GUI slowdowns. I did some investigations, and I heard problems where people were having blocking issues with the QNetworkAccessManager inside the QWebFrame. To take care of this, I put the network stuff inside a thread.
However, the blocking continues. I’ve narrowed it down to this line, where pReply is the QNetworkReply from the networking thread:
this->page->mainFrame()->setHtml(pReply->readAll());
I do not believe setHtml is blocking, but it definitely seems to be messing with the GUI’s responsiveness for a solid 1-1.5 seconds. I would move the page into another thread, but we all know that wouldn’t work.
Any ideas? I’m thoroughly stumped
↧