http proxy problem of QWebEngineView
-
Hi, I'm trying to port my Qt application from Webkit to WebEngine, but I'm failing to find a way to set proxy for QWebEngineView.
I hava tried to set my Application's proxy as follows. But it's also failed to access the web page.
QNetworkProxy m_networkProxy;
QNetworkAccessManager *m_networkAccessManager;
m_networkAccessManager = new QNetworkAccessManager;m_networkProxy.setType(QNetworkProxy::HttpProxy); m_networkProxy.setHostName(tr("web-proxy.corp.xx.com")); m_networkProxy.setPort(8080); m_networkProxy.setUser(""); m_networkProxy.setPassword(""); m_networkAccessManager->setProxy(m_networkProxy); QNetworkProxy::setApplicationProxy(m_networkProxy);
Is this an issue caused by the way I doing this or is this a bug ?
-
-
@SGaist
Thanks for your information. I have tried to set the proxy as the way you gave me. But the QWebEngineView can't access to web site too.Thanks,
Peng -
QWebEngineView use IE's proxy settings, just like google chrome