WebEngineView and Network Proxy
-
wrote on 28 Aug 2015, 18:09 last edited by
Hello, can someone explain me how to use a proxy server with WebEngineView in qml?
I wrote this in main.c:
QNetworkProxy proxy(QNetworkProxy::HttpProxy,"proxyip",port,"user","pass");
QNetworkProxy::setApplicationProxy(proxy);also i wrote
QQmlApplicationEngine engine;
engine.networkAccessManager()->setProxy(proxy);i can access internet with XmlListModel but as i try to display a page into WebEngineView, setting the url property, WebEngineView try to use system settings and does not read the proxy settings from application.
Thank you.
-
wrote on 10 Sept 2015, 09:55 last edited by
Hi,
I'm struggling with the same problem, I guess we'll have to wait for Qt 5.6 as "Support for following global Qt proxy settings" is in the release notes for Qt Web Engine there (or use the alpha).
Lasse