[Qt-interest] Basic question : how to get the QTimer state on counting milliseconds

Thiago Macieira thiago at kde.org
Sun May 23 11:24:54 CEST 2010


Em Domingo 23. Maio 2010, às 10.32.00, Meir Yanovich escreveu:
> Hi
> i saw the QTimer  interval gives only the init interval the QTimer was set
> with
> but i need to get the real time counting of the milliseconds after the hit
> the QTimer start method
> what is the best way to get it?

Use QElapsedTimer to get the time spent since started.

-- 
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/20100523/e7b8c54e/attachment.bin 


More information about the Qt-interest-old mailing list