Determines whether or not this widget should be deleted after close.
        
        :param      event | <QtCore.QCloseEvent>

def closeEvent(self, event):
        """
        Determines whether or not this widget should be deleted after close.
        
        :param      event | <QtCore.QCloseEvent>
        """
        if not self.canClose():
            event.ignore()
            return

        elif not self.isViewSingleton():
            self.setAttribute(Qt.WA_DeleteOnClose)

        else:
            self.setParent(self.window())  # attach the hidden singleton instance to the window vs. anything in the view

        super(XView, self).closeEvent(event)