[Interest] Is freshly created QNetworkReply guaranteed to be in non-finished state and emit finished signal?
Reinhardt Behm
rbehm at hushmail.com
Wed Apr 19 22:15:23 CEST 2017
On Wednesday 19 April 2017 11:03:48 Thiago Macieira wrote:
> 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.
Doesn't QAN use it's own thread? Then it could already be finished before the
connection is made.
--
Best Regards
Reinhardt Behm
More information about the Interest
mailing list