Unable to open a webpage which has polymer in Qt 5.5
Unsolved
General and Desktop
-
Hi Everyone,
Iam new to Qt 5.5. Iam simple application to open a web page which consists of polymer but iam unable to open it.I dont know whether my proxy is blocking or my code is wrong. can some one help me out about this.
Here is my code
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); // void QWebView::load("http://www.google.com"); QNetworkProxy proxy; proxy.setType(QNetworkProxy::Socks5Proxy); proxy.setType(QNetworkProxy::HttpProxy); proxy.setHostName("proxy.cat.com"); proxy.setPort(80); proxy.setUser("username"); proxy.setPassword("password"); QNetworkProxy::setApplicationProxy(proxy); QWebEngineView *view = new QWebEngineView(parent); view->load(QUrl("http://www.google.com")); qDebug() << QUrl("http://www.google.com"); view->show();
[edit: fixed coding tags and removed credentials SGaist]
-
Hi,
Did you check that your proxy address is correct ?