[Qt-interest] How to setup proxy for WebView in QML?
Xiaolei Shang
xiaolei.shang at cobham.com
Wed Jun 22 10:57:56 CEST 2011
Hi:
I can't see the username and password have been setup for the proxy.
Also, you need to check if "http_proxy" environment variable has been
defined in your computer.
Cheers
Xiaolei
> Hi, Experts,
> I am using WebView in QML files, it will access sites through http
> proxy, I tried to add following code in main function, but still no
> page returned.
> QNetworkProxy proxy;
> proxy.setType(QNetworkProxy::HttpProxy);
> proxy.setHostName("ip");
> proxy.setPort(8008);
>
> QNetworkProxy::setApplicationProxy(proxy);
> The WebView can access local sites successfully, who knows how to set it?
> Best Regards
> He Yunlong (何云龙)
> Cube: GTC-18M08
> iNet: 8751-1645
> Tel: +86-010-57511645
> Email: _yunlong.he at intel.com_ <mailto:yunlong.he at intel.com>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110622/ee699c5c/attachment.html
More information about the Qt-interest-old
mailing list