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. QtWebKit QWebView & the Data-URI Protocol - Not supported?
Forum Updated to NodeBB v4.3 + New Features

QtWebKit QWebView & the Data-URI Protocol - Not supported?

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.8k 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
    mader80
    wrote on last edited by
    #1

    We are loading simple HTML in a QWebView, and every image that uses the data-uri protocol does not work. Instead we see the default placeholder image. We are using the Arora browser for testing which uses QTWebKit, but also have tested by loading a QWebView through a cpp file.

    Some research I did:

    • According to this source, the Arora browser does not support the data-uri protocol - (and therefore neither QTWebKit?) : http://web-browsers.findthebest.com/q/14/2604/What-protocol-support-features-does-the-web-browser-Arora-made-by-Benjamin-C-Meyer-have

    • The following comparison article for data-uri support DOES NOT explicitly list Arora or QTWebkit as having support for data-uri: http://en.wikipedia.org/wiki/Data_URI_scheme#Web_browser_support

    • On the following reference page, QT apparently has support for data url stylesheets, but there is nothing explicitly calling out images - and perhaps this is in the c++ code only: http://harmattan-dev.nokia.com/docs/library/html/qtwebkit/qwebsettings.html

    • Also here, on the webkit list of supported standards, they don't list the data-uri protocol: http://trac.webkit.org/wiki/QtWebKitSupportedStandards

    In other web references, people make mention of using data-uri images, but in every case they are talking about in the c++ code. I have not seen a reference to the data-uri protocol working in a QWebView - which is what we need.

    Here is an example of an image we are trying to load:

    @<img >@
    SORRY - this editor will not let me paste the full example. It keeps removing the important parts. Please see this post on StackOverflow for the code example. It's a duplicate to this one:
    http://stackoverflow.com/questions/10854028/qtwebkit-qwebview-the-data-uri-protocol-not-supported

    Initially I was loading without the charset, which doesn't make a difference in Chrome. These images load fine in chrome btw.

    So to be clear, I am trying to find out if a QtWebKit QWebView supports the data-uri protocol.

    Thanks everyone!

    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