Class: QgsEffectStackPropertiesWidget¶
A widget for modifying the properties of a QgsEffectStack,
including adding and reordering effects within the stack.
See also
See also
See also
QgsEffectStackPropertiesWidget¶
Class Hierarchy¶
Base classes¶
Base class for any widget that can be shown as an inline panel. |
|
- class qgis.gui.QgsEffectStackPropertiesWidget[source]¶
Bases:
QgsPanelWidget- __init__(stack: QgsEffectStack | None, parent: QWidget | None = None)
QgsEffectStackPropertiesWidget constructor
- Parameters:
stack (Optional[QgsEffectStack]) –
QgsEffectStackto modify in the widgetparent (Optional[QWidget] = None) – parent widget
- changeEffect(self, newEffect: QgsPaintEffect | None)[source]¶
Updates the effect stack when the currently selected effect changes properties.
- Parameters:
newEffect (Optional[QgsPaintEffect]) – new effect to replace existing effect at selected position within the stack.
- loadStack(self)[source]¶
Refreshes the widget to reflect the current state of the stack.
loadStack(self, stack: Optional[QgsEffectStack]) Refreshes the widget to reflect the current state of a specified stack.
- Parameters:
stack –
QgsEffectStackfor widget
- moveEffectByOffset(self, offset: int)[source]¶
Moves the currently selected effect within the stack by a specified offset
- Parameters:
offset (int)
- setPreviewPicture(self, picture: QPicture)[source]¶
Sets the picture to use for effect previews for the dialog
- Parameters:
picture (QPicture) – preview picture
- setWidget(self, widget: QWidget | None)[source]¶
Sets the effect properties widget
- Parameters:
widget (Optional[QWidget])
- stack(self) QgsEffectStack | None[source]¶
Returns effect stack attached to the widget
- Return type:
Optional[QgsEffectStack]
- Returns:
QgsEffectStackmodified by the widget