class_docstr: Group parameters are used mainly as a generic parent item that holds (and groups!) a set
  of child parameters. It also provides a simple mechanism for displaying a button or combo
  that can be used to add new parameters to the group.
class_docstr_tok: ["Group","parameters","are","used","mainly","as","a","generic","parent","item","that","holds","(","and","groups","!",")","a","set","of","child","parameters",".","It","also","provides","a","simple","mechanism","for","displaying","a","button","or","combo","that","can","be","used","to","add","new","parameters","to","the","group","."]
code: def __init__(self, param, depth):
      ParameterItem.__init__(self, param, depth)
      self._initialFontPointSize = self.font(0).pointSize()
      self.updateDepth(depth)
  
      self.addItem = None
      if "addText" in param.opts:
          addText = param.opts["addText"]
          if "addList" in param.opts:
              self.addWidget = QtWidgets.QComboBox()
              self.addWidget.setSizeAdjustPolicy(
                  QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContents
              )
              self.updateAddList()
              self.addWidget.currentIndexChanged.connect(
                  self.addChanged
              )
          else:
              self.addWidget = QtWidgets.QPushButton(addText)
              self.addWidget.clicked.connect(self.addClicked)
          w = QtWidgets.QWidget()
          l = QtWidgets.QHBoxLayout()
          l.setContentsMargins(0, 0, 0, 0)
          w.setLayout(l)
          l.addWidget(self.addWidget)
          l.addStretch()
          self.addWidgetBox = w
          self.addItem = QtWidgets.QTreeWidgetItem([])
          self.addItem.setFlags(QtCore.Qt.ItemFlag.ItemIsEnabled)
          self.addItem.depth = self.depth + 1
          ParameterItem.addChild(self, self.addItem)
          self.addItem.setSizeHint(0, self.addWidgetBox.sizeHint())
  
      self.optsChanged(self.param, self.param.opts)
  
imports: import builtins
  from ...None import functions
  from ...None import icons
  from ...Qt import QtCore, QtGui, QtWidgets, mkQApp
  from ..Parameter import Parameter
  from ..ParameterItem import ParameterItem
label_desc: Use image node_id 1 to create a new GroupParameterItem object from inherited base classes: ParameterItem with example: obj = GroupParameterItem(param, depth)