[Qt-interest] How to setup proxy for WebView in QML?
He, Yunlong
yunlong.he at intel.com
Tue Jun 21 11:05:47 CEST 2011
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110621/53689f71/attachment.html
More information about the Qt-interest-old
mailing list