[Qt-interest] Disable Network Proxy after setting it
Thiago Macieira
thiago at kde.org
Tue Oct 19 14:52:11 CEST 2010
Em Terça-feira 19 Outubro 2010, às 13:25:19, Mandeep Sandhu escreveu:
> > Hi,
> > How can i disable a QNetworkProxy ?
>
> QNAM::setProxy(QNetworkProxy()) ?
>
> Default is 'NoProxy'.
Don't confuse QNetworkProxy::DefaultProxy with the default DefaultProxy.
if you set something's proxy to QNetworkProxy::DefaultProxy, then it will use
the application-wide proxy (QNetworkProxy::setApplicationProxy or
QNetworkProxyFactory::setApplicationProxyFactory). The default is to use
DefaultProxy, so that allows you to control from a central place.
The default application-wide proxy is NoProxy.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101019/a4188661/attachment.bin
More information about the Qt-interest-old
mailing list