widget, QApplication and the Event Loop