Treeform.setExpanded

Treeform.setExpanded(self, index: PySide6.QtCore.QModelIndex | PySide6.QtCore.QPersistentModelIndex, expand: bool) None