Calling Sleep() You are blocking a thread and event loop. Window is repainted in more when one event. Just replace Sleep() with mySleep like this :
Qt Code:
void MainWindow::mySleep( int ms ) { QEventLoop loop; loop.exec(); }To copy to clipboard, switch view to plain text mode
Bookmarks