while (Условие){QApplication::processEvents();}
C++ (Qt)QCoreApplication::processEvents()
C++ (Qt) QTimer t; QEventLoop l; connect(&t, SIGNAL(timeout()), &l, SLOT(quit())); t.setSingleShot(true); t.start(msec); l.exec();
C++ (Qt)while(!asleep()) sheep++;