code: def finalize(self):
          
          for subEditor in self._subEditors:
              self.removeSubEditor(subEditor)
  
          self.cti.model.sigItemChanged.disconnect(self.modelItemChanged)
          self.resetButton.clicked.disconnect(self.resetEditorValue)
          self.cti = None # just to make sure it's not used again.
          self.delegate = None
docs: Called at clean up, when the editor is closed. Can be used to disconnect signals.
              This is often called after the client (e.g. the inspector) is updated. If you want to
              take action before the update, override prepareCommit instead.
              Be sure to call the finalize of the super class if you override this function.