PORT: MacOS needs an event from QApplication