events, QApplication and the Event Loop