The problem is that if you were able to do that, the QWebPage
wouldn't be able to read the data from the QNetworkReply
object, because the reply is a sequential QIODevice
and the data can only be read once.
The only way I've been able to deal with this is to override QNetworkAccessManager::createRequest
and have it return a QNetworkReply
subclass which acts as a a wrapper around the actual reply object, which can capture the incoming data.
Ah, see How to read data from QNetworkReply being used by QWebPage? for a solution.