QtWebKit QWebView & the Data-URI Protocol - Not supported?
-
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-supportedInitially 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!
-