When QWebPage loads a page, it sends requests for all the objects on the page (images, js, css). I want to save these objects to separate files, and not just to display them in QWebView.
As stated in How to read data from QNetworkReply that is used by QWebPage? , the data for each object has already been read by QWebPage and the program does not receive anything for writing to the file. The link above suggests implementing the QNetworkReply proxy and returning it to the createRequest method of the QNetworkAccessManager derived class . But I donβt understand what I should do in the createRequest method or how to implement this proxy for QNetworkReply . If you have some sample code for this purpose, it would be great.
The above link suggested this link: proxy for QNetworkReply . But this seems like a complicated class for some other purpose, and, as I said, I donβt know how to use it in the createRequest method .
source
share