Used for displaying a button within the tree.
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. To enable this, the group must be initialized with the ‘addText’ option (the text will be displayed on a button which, when clicked, will cause addNew() to be called). If the ‘addList’ option is specified as well, then a dropdown-list of addable items will be displayed instead of a button.
This method is called when the user has requested to add a new item to the group.
alias of GroupParameterItem
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.
WidgetParameterItem subclass providing comboBox that lets the user select from a list of options.
Editable string; displayed as large text box in the tree.
ParameterTree item with:
This class can be subclassed by overriding makeWidget() to provide a custom widget.
Return a single widget that should be placed in the second tree column. The widget must be given three attributes:
sigChanged | a signal that is emitted when the widget’s value is changed |
value | a function that returns the value |
setValue | a function that sets the value |
This is a good function to override in subclasses.
Called when any options are changed that are not name, value, default, or limits