code: def focusOutEvent(self, event):
          
          if not self.signalsBlocked():
              self.focusChanged.emit(False)
              self.focusExited.emit()
          
          return super(XTextEdit, self).focusOutEvent(event)
docs: Processes when this widget loses focus.
          
          :param      event | <QFocusEvent>