I have created a POST request and I connect to the finished() signal:
QNetworkReply *reply = manager->post(request, postData.encodedQuery());
connect(reply, SIGNAL(finished()), this, SLOT(accept()));
I want to be notified when the POST request has finished, regardless of whether it failed or succeeded.
I have noticed in the documentation that there is also a QNetworkReply::error() signal, do I need to connect to it, too, or will finished()
be called in all cases?
Qt documentation states:
From what I've seen in Qt sources (was checking absolutely same issue recently), everywhere after error(), there is a finished() call afterwards. In 5.1.0 I haven't found a place where error is not followed by finished()
for example