QtWebKit Application Cache: does it work?
I built a basic browser using QtWebKit and it works fine except for the application cache feature in HTML 5. Does anyone know if this is supported and works?
This made me believe I implemented my browser wrong so I tried the demo browser packaged with both Qt 4.7 and Qt 4.8 BETA and had the same results. I then thought I could try the Arora browser as I read it was based on QtWebKit and I have the same result.
This leads me to believe that although it's listed a supported feature and even though the HTML 5 test shows it's supported that somehow it's broken or I'm missing something to enable it inside my application or maybe it's really picky about my JS implementation.
Anyone have any insight. Even a finger in the right direction would be helpful.
Or if you've done something similar any examples would be helpful.
Ok, so I figured out the problem. I didn't enable offline web application cache. I assumed since it was supported it was enabled by default, but I guess I wasn't reading the documentation carefully enough that states it disabled by default... oops!
So basically doing something like this enables it:
view = new QWebView(this);
And that did. After recompiling my app loaded all the way through perfect. I did notice that it doesn't seem to be calling the "progress" event on the event listener for window.applicatinoCache, but oh well, that's not so ciritical.
Hope that helps someone... but then you're probably all better at reading the documentation ;).