parameters: (self, index)
docstring: It is called when the item specified by index is expanded.
docstring_summary: It is called when the item specified by index is expanded.
docstring_tokens: It is called when the item specified by index is expanded .
function: def onExpanded(self, index):
          """It is called when the item specified by index is expanded."""
          if not index.isValid():
              return
  
          # Load the objects of the children items
          item = index.internalPointer()
          for i in range(item.childCount()):
              child = item.child(i)
              child.obtainChildren()
function_tokens: def onExpanded ( self , index ) : if not index . isValid ( ) : return # Load the objects of the children items item = index . internalPointer ( ) for i in range ( item . childCount ( ) ) : child = item . child ( i ) child . obtainChildren ( )