Replaced QtWidgets/QApplication by QApplication