If it doesn't then how can i explicitly force it to download async. in a separate thread?
views:
57answers:
1
+1
A:
According to the documentation for QWebView::setHtml()
:
Sets the content of the web view to the specified html.
External objects such as stylesheets or images referenced in the HTML document are located relative to baseUrl.
The html is loaded immediately; external objects are loaded asynchronously.
Same thing goes for QWebView::setContent()
. Therefore, the raw HTML is loaded in the main thread, and any other references (images, stylesheets, etc.) are loaded asynchronously in a separate thread.
From experience, I can tell that QWebView::setUrl()
also loads asynchronously, using a network manager to wait for the raw HTML, which will in turn load the other references, also asynchronously. As far as I know, there is no way to force QWebView to act sychcronously.
Fred
2010-10-12 18:33:44
i don't believe that asynch. is synonymous with new thread in the qt context. It might just mean non-blocking way.
Jsz
2010-10-13 10:23:01