Qt Web Channel is a labs project that enables the creation of an HTTP-based channel between a web view and its QML/C++ container. To build: cd src qmake make sudo make install This would enable a QML import, which can be imported as such: import Qt.labs.WebChannel 1.0 and then instantiated: WebChannel { id: webChannel onExecute: { } } A new WebChannel then generates a secret URL, that can be used from within an HTML page as a loaded script. QML: WebView { id: webView url: "index.html?webChannelBaseUrl=" + webChannel.baseUrl; } HTML: document.write('