Ask questions about the use of QWebView



  • Now I want to do a function , is to use QWebView to load a local html file, and then HTML in the connection of a number of image resources. But the picture of resources is encrypted, I QWebView loading the html is to before it loads a picture of resources, to something, such as a signal or a callback, let me will decrypt images then it in loading unencrypted pictures?


  • Moderators

    @oxchen
    you need to set a custom QNetworkAccessManager (on the QWebView's QWebPage).
    In this custom NAM you need to override it's createRequest() method and return a - maybe also custom - QNetworkReply with the decrypted image data.



  • Thank you, according to your ideas, the problem solved!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.