[Development] About "finish" signal in QHttpNetworkConnectionChannel
song.7.liu at nokia.com
song.7.liu at nokia.com
Thu Jul 19 17:55:09 CEST 2012
Hi,
I am using the QNetworkAccessManager::get to request content from http://www.google.com.
Then the QHttpNetworkConnectionChannel will be created and worked on another thread, when all the data is received, the QHttpNetworkConnectionChannel::allDone will be invoked, where:
// queue the finished signal, this is required since we might send new requests from
// slot connected to it. The socket will not fire readyRead signal, if we are already
// in the slot connected to readyRead
if (reply && emitFinished)
QMetaObject::invokeMethod(reply, "finished", Qt::QueuedConnection);
So this "finished" signal will be queued in the thread of QNetworkReplyHttpImpl until a new event will be handled.
Finally, my application also won't receive any finished signal until for example: touch the screen to trigger the queued signal be handled.
So why using the type Qt::QueuedConnection for this "finished" signal ? is there something wrong in my side ?
Thanks,
Song
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120719/1d54ef5e/attachment.html>
More information about the Development
mailing list