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 a inline panel |
|
Methods
Adds a new effect to the stack. |
|
Updates the effect stack when the currently selected effect changes properties. |
|
Updates the widget when the selected effect changes type. |
|
Refreshes the widget to reflect the current state of the stack. |
|
Moves the currently selected effect within the stack by a specified offset |
|
Moves the currently selected effect down in the stack. |
|
Moves the currently selected effect up in the stack. |
|
Removes the currently selected effect from the stack. |
|
Sets the picture to use for effect previews for the dialog |
|
Sets the effect properties widget |
|
Returns effect stack attached to the widget |
|
Updates the effect preview icon. |
|
Enables or disables widgets depending on the selected effect within the stack. |
- class qgis.gui.QgsEffectStackPropertiesWidget[source]¶
Bases:
QgsPanelWidget
- __init__(stack: QgsEffectStack | None, parent: QWidget | None = None)
QgsEffectStackPropertiesWidget constructor
- Parameters:
stack (Optional[QgsEffectStack]) –
QgsEffectStack
to 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, stack: QgsEffectStack | None)[source]
Refreshes the widget to reflect the current state of a specified stack.
- Parameters:
stack (Optional[QgsEffectStack]) –
QgsEffectStack
for 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:
QgsEffectStack
modified by the widget