Qt Labs Forum » Qt Messaging

Also, How would you wait for a list instead of sending a signal?

(2 posts)
  • Started 1 month ago by joe_the_user
  • Latest reply from sanders

  1. joe_the_user
    joe_the_user
    Member

    Suppose I'm trying to get the result of an http request with:

    m_nam = new QNetworkAccessManager(this);
    QNetworkReply *reply = m_nam->get(request);

    In this instance, I'm doing this on a worker thread, so I'd just like to wait until I get the whole result or I fail. How would I do this?

    I could call reply->waitForReadyRead() but that only waits till I get input. How do you wait till download is finished?

    Posted: 1 month #
  2. sanders
    sanders
    Member

    Unfortunately this question is offtopic for the messaging forum, I respectfully suggest you try another forum.

    Please note: Perhaps you could try connecting to the QNetworkReply::finished () signal.

    Posted: 1 month #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.