Force QWebView to load webpage content in a separate stream?

How to get QWebView to load a web page and related content into a separate stream?

+3
source share
3 answers

You cannot easily. You can implement your own QNetworkAccessManager (see CreateRequest ()), which offloads the work in QNetworkAccessManager in another thread.

What is your specific problem? Maybe this can be solved differently or report an error in Qt?

+3
source

Why do you see a problem loading QWebView content in the main thread? I mean, the main thread will not be blocked at all if you do.

You may have hidden QWebView download content, and only when it finishes will you show it.

Maybe you should describe your problem / idea a little more to help us help.

0
source

Source: https://habr.com/ru/post/1769513/


All Articles