Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //delay(2000); ele pausa por dois segundos e vai atualizando
- void delay(int millisecondsToWait)
- {
- QTime dieTime = QTime::currentTime().addMSecs( millisecondsToWait );
- while( QTime::currentTime() < dieTime )
- {
- QCoreApplication::processEvents( QEventLoop::AllEvents, 100 );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement