http proxy problem of QWebEngineView
General and Desktop
4
Posts
3
Posters
2.1k
Views
2
Watching
-
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 ?