Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QML Webview - Unable to get the PAC script at "http://wpad/wpad.dat" (Remote Host Unavailable)

$
0
0
On OSX 10.8.3 when I try to create a simple QML webview with QT5.0.1 or 5.0.2 I keep getting the same error. Unable to get the PAC script at "http://wpad/wpad.dat" (Remote Host Unavailable) main.cpp #include <QApplication> #include <QtQuick/QQuickView> #include <QtWebKit/QtWebKit>   int main(int argc, char *argv[]) {     QApplication app(argc, argv);       QQuickView view;     view.setTitle("Hello Webview");     view.setMinimumSize(QSize(800, 600));     view.setResizeMode(QQuickView::SizeRootObjectToView);     view.setSource(QUrl("qrc:/main.qml"));     view.show();       return app.exec(); } main.qml import QtQuick 2.0 import QtWebKit 3.0     WebView {     url: "http://news.ycombinator.com"     anchors.right: parent     anchors.left: parent }

Viewing all articles
Browse latest Browse all 18427

Trending Articles