Advertisement
AbraaoAllysson

"Qlabel"RealTIme

May 17th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //delay(2000); ele pausa por dois segundos e vai atualizando
  2. void delay(int millisecondsToWait)
  3. {
  4.     QTime dieTime = QTime::currentTime().addMSecs( millisecondsToWait );
  5.     while( QTime::currentTime() < dieTime )
  6.     {
  7.         QCoreApplication::processEvents( QEventLoop::AllEvents, 100 );
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement