moved processEvents() to display the splash screen on Linux