QCloseEvent

class PyQt5.QtGui.QCloseEvent

C++ documentation