Moved QApplication call