I'm trying to load a local HTML file into a Qt 5.4.1 QtWebView:
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtWebView 1.0
ApplicationWindow {
visible: true
title: webView.title
WebView {
id: webView
anchors.fill: parent
url: "qrc:/index.html"
}
}
The HTML file is referenced in the qrc, and everything works as expected on the desktop.
However, when I deploy to Android, the webview fails to load the local file (although it works if I use a URL on the Web).
I could not find any hint in the documentation nor in the qt bug tracker (ie, as far as I understand, it is supposed to work).