I have a .qrc file in my project, which is basically the default html5 template project, and my web view cannot load my index.html file via qrc. the qrc resources are accessible when I try to open them with QFile, but if I use the exact same qrc url with my web view, I get nothing displayed. I’ve observed this behavior with Qt 5.2.1 and with 5.3.0. I’ve used the “Copy Resource Path to Clipboard” option in the qrc editor, and the resulting path works with QFile, but not with the web view. I’d expect that QWebView and QGraphicsWebView use QFile on the back end, but for some reason, it just won’t show my html page.
is there something special about QWebView or QGraphicsWebView that prevents qrc resources from working? is there another step I’m missing?
↧