code: def childEvent_(self, ev):
      # NOTE: this method has been renamed to avoid having the same method name as
      #       QSplitter.childEvent()
      #       this causes problems for PyQt6 since SplitContainer inherits from
      #       Container and QSplitter.
      ch = ev.child()
      if ev.removed() and hasattr(ch, "sigStretchChanged"):
          # print "Child", ev.child(), "removed, updating", self
          try:
              ch.sigStretchChanged.disconnect(self.childStretchChanged)
          except:
              pass
          self.updateStretch()
  
imports: import weakref
  from ..Qt import QtCore, QtWidgets
  from .Dock import Dock
label_desc: Use image node_id 8 for calling the Container obj's underlying member method code with example usage: obj.childEvent_(ev) without return types