From Pyqt6 Qtwidgets Import Qapplication, > or from PyQt6 import QtWidgets.