When testing a default Qt dialog (QFileOpenDialog), I can\'t seem to get the program to automatically close the windows. However, a different test will automatically run.