Observer pattern, QApplication and the Event Loop