QWebView not loading external javascript?
It is possible to load an external javascript file from the html using QWebView? In the following QtProject (all files in the same directory) there is javascript code directly inside the html and also in an external file. I'm missing the external behavior while loading it in QWebView (in the browser it works fine): MyApp.pro QT += core gui webkitwidgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = MyApp TEMPLATE = app DESTDIR = ./ SOURCES += main.cpp HEADERS += main.cpp #include <QApplication> #include <QtWebKitWidgets> #include <QFile> int main(int argc, char *argv[]) {