Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Ask questions about the use of QWebView

    Qt WebKit
    2
    3
    674
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      oxchen last edited by

      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?

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @oxchen last edited by

        @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.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply Reply Quote 0
        • O
          oxchen last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post