[Qt-interest] Disable Network Proxy after setting it

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue Oct 19 16:55:22 CEST 2010


On Tue, Oct 19, 2010 at 6:22 PM, Thiago Macieira <thiago at kde.org> wrote:
> 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.

Correct. My bad.

If someone has changed the the application wide proxy to something
other than NoProxy, then the 'DefaultProxy' proxy will point to that.

-mandeep

>
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list