Publish-subscribe pattern, QApplication and the Event Loop