New Qt 5 / WebKit 2 WebView APIs
There was no blog posting last week because I was away for some vacation in a warm place.
This week work continued implementing the APIs for Accelerometer and Notification and using the Qt Simulator for testing.
We also started looking at the new APIs needed to use WebKit2 from Qt 5. With Qt 5 and Webkit2 the APIs for QtWebKit and Web View are changing significantly. This is because with WebKit2, WebKit and the application run in different processes. The old QWebView widget will only be supported on Qt for desktops and won't use the new WebKit2. Mobile phone platforms typically won't have the QWidgets module installed in Qt 5. We want to use WebKit2 to leverage scene graph and other improvements in WebKit2.
If you build QtWebKit from git, the experimental support for communicating with the QML WebView element via messages is present. From QML you need to do:
import QtQuick 2.0
import QtWebKit 3.0
import QtWebKit.experimental 3.0
These references explain more:
Have a question or want to add to the conversation?
You must be logged in to continue.
Log in Register