Use QApplication after creating an instance.