[Qt-interest] Problem using QNetworkAccessManager/QNetworkReply for large file download

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Wed Feb 17 10:59:18 CET 2010


On Wed, Feb 17, 2010 at 2:39 PM, Markus Goetz <Markus.Goetz at nokia.com> wrote:
> Hi,
>
> ext Mandeep Sandhu wrote:
>>
>> 1) Whenever I read BUFSIZE in the readyRead signal, I'm seeing that I
>> get LESS number of bytes than BUFSIZE! I get around 70K as size of the
>> QByteArray. Is this expected?
>>
>
> Yes. readyRead() is emitted as soon as Qt knows about any data available.
> You would have to check bytesAvailable() then.

Ok, this makes sense.

>>
>>
>> It's also fixed in Qt 4.6! :(
>>
>>
>
> Yes, there have been some more fixes in 4.6 regarding that. It should work
> there now with 4.6.2. Please consider upgrading.

Thanks,
-mandeep

>
> Markus
>



More information about the Qt-interest-old mailing list