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?