code: def resetEditorValue(self, checked=False):
          
          # Block all signals to prevent duplicate inspector updates.
          # No need to restore, the editors will be deleted after the reset.
          for subEditor in self._subEditors:
              subEditor.blockSignals(True)
  
          self.cti.resetToDefault(resetChildren=True)
          # This will commit the children as well.
          self.setData(self.cti.defaultData)
          self.commitAndClose()
docs: Resets the editor to the default value. Also resets the children.