Wait shortly for QApplication to register the screen change before continuing.

When there’s a screen resolution change, QApplication::desktop() will continue to report the old resolutions causing incorrect sizing at startup by MythMainWindow and MythUIHelper.

Now, create a QEventLoop that will process the required events during a short period of time.