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

Thiago Macieira thiago.macieira at intel.com
Wed Apr 19 20:03:48 CEST 2017


On quarta-feira, 19 de abril de 2017 05:30:49 PDT Konstantin Tokarev wrote:
> 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?

It's guaranteed not to be finished.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list