code: def focusOutEvent( self, event ):
          
          super(XNavigationEdit, self).focusOutEvent(event)
          
          self.cancelEdit()
docs: Overloads the focus out event to cancel editing when the widget loses
          focus.
          
          :param      event | <QFocusEvent>