Reason: the QApplication had a flag in Qt4 which allowed disabling of the UI system. This flag no longer works in Qt5.