Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [solved] Multiple webviews with same embedded image problem
Forum Updated to NodeBB v4.3 + New Features

[solved] Multiple webviews with same embedded image problem

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 1.0k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Maxnet
    wrote on last edited by
    #1

    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 ( http://en.wikipedia.org/wiki/Data_URI_scheme#HTML )

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Maxnet
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved