Calling qApp->ProcessEvents(); did the trick. Thanks.