[Qt-interest] can i use one QNetworkAccessManager for all my application networking needs ?

Anthony Serdyukov uksus70+qt at gmail.com
Fri May 7 07:02:30 CEST 2010


I usually override QApplication which owns QNAM. An application instance is
a singleton.

2010/4/13 Meir Yanovich <meiry242 at gmail.com>

> what do you think the best way to implement it ?
> singeltone object that wrapps the QNetworkAccessManager ?
>
> On Mon, Apr 12, 2010 at 3:48 PM, Thiago Macieira <thiago at kde.org> wrote:
>
>> Em Segunda-feira 12 Abril 2010, às 12:13:03, Meir Yanovich escreveu:
>> > Hello all
>> > i wander .. can i use 1 instance of QNetworkAccessManager for all my
>> > networking needs ?
>>
>> Yes, you can. More than that, you should.
>>
>> > i have webkit in my application that i monitor http request / response ,
>> > and in different module i have
>> > simple http request / response ( not coming from webkit )
>> > is it safe ?
>>
>> --
>> 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
>>
>>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100507/2041ad2a/attachment.html 


More information about the Qt-interest-old mailing list