I have a superclass that inherits from QMainWindow, and its purpose is to call a function inside the Connection function instead of the normal CloseEvent (which would close my w