[Qt-interest] Delay of code execution

Thiago Macieira thiago at kde.org
Tue Apr 13 17:16:55 CEST 2010


Em Terça-feira 13. Abril 2010, às 17.09.49, Matthias Pospiech escreveu:
> If I however use the latter approach inside a thread I see that the
> function delay(1000) returns immediately.
> Did I understand something wrong? Which is the recommanded solution?
> I know that in a thread I could as well use msleep, but I would like to
> have a solution which can be used anywhere
> in the programm and also outside of QThread classes.

The recommended solution is to not add any kind of delays.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100413/6db0d3b1/attachment.bin 


More information about the Qt-interest-old mailing list