[Qt-interest] qNetworkReply waitForReadyRead()
Oscar Kuchuk
oscar at kuchuk.com.ar
Mon Feb 23 13:36:07 CET 2009
I've used readyRead ok for some chunks of data like this:
void X::readyRead()
{
Text+=reply->readAll();
}
it works ok.
On Monday 16 February 2009 09:58:52 Srikanth Kavoori wrote:
> Hi all ,
>
> Does anyone has any idea if waitForReadyRead works with QNetworkReply as a
> device.
>
> i connected my function to QNetworkReply's readyRead to get trigger to
> start reading my data.
> If i get all data in one readyRead everything works fine.
>
> but if readyRead gets connected only after a chunk of data even though i
> wait using waitForReadyRead , it never works. waitForReadyRead always
> returns False even though bytesAvailable() is less than contentLength from
> the reply's headers.
>
> When i debugged the code , it always refers the base class
> waitForReadyRead() ( in this case QIODevice's function ) which has a
> default implementation to return FALSE.
>
> has anyone able QNetworkReply's readyRead function with multiple chunks of
> data without using waitForReadyRead ?
>
> Thanks in advance for your help.
>
> Best Regards,
> Srikanth Kavoori
> Sent from: Tampere Ls Finland.
More information about the Qt-interest-old
mailing list