Important: Please read the Qt Code of Conduct -

[solved] Multiple webviews with same embedded image problem

  • I have an application with multiple tabs, each having their own WebView

    I set HTML using the setHtml() method, and that HTML contains base64 inline images using the data URI scheme ( )

    I noticed that if a second tab/webview is opened that includes the exact same image as the first tab, the image in the first tab is replaced with a question mark error icon.
    Anyone experienced similar problems and knows a solution?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should add which precise version of Qt and OS you are using. Also, if you can provide a minimal code sample that reproduce the behavior, more people will be likely to help you

  • Thanks for the reply.

    Just found the problem in my own code that was causing the image data to get corrupted.
    Turned out to be non webkit related.

Log in to reply