[Interest] Is freshly created QNetworkReply guaranteed to be in non-finished state and emit finished signal?

Konstantin Tokarev annulen at yandex.ru
Wed Apr 19 14:30:49 CEST 2017


Hello,

I wonder if in the following code it's safe to assume onFinished() will always be called:

  QNetworkReply *reply = networkAccessManager->get(request);
  connect(reply, SIGNAL(finished()), SLOT(onFinished()));
  
Or is reply allowed to be in finished state already and never emit finished?

-- 
Regards,
Konstantin



More information about the Interest mailing list