QgsEffectStackCompactWidget class

A small widget consisting of a checkbox for enabling/disabling an effect stack and a button for opening an effect stack customization dialog.

Base classes

class QgsPanelWidget
Base class for any widget that can be shown as a inline panel.

Constructors, destructors, conversion operators

QgsEffectStackCompactWidget(QWidget* parent = nullptr, QgsPaintEffect* effect = nullptr)
QgsEffectStackCompactWidget constructor.

Public functions

auto paintEffect() const -> QgsPaintEffect*
Returns paint effect attached to the widget.
void setPaintEffect(QgsPaintEffect* effect)
Sets paint effect attached to the widget,.
void setPreviewPicture(const QPicture& picture)
Sets the picture to use for effect previews for the dialog.

Signals

void changed()
Emitted when the paint effect properties change.

Function documentation

QgsEffectStackCompactWidget::QgsEffectStackCompactWidget(QWidget* parent = nullptr, QgsPaintEffect* effect = nullptr)

QgsEffectStackCompactWidget constructor.

Parameters
parent parent widget
effect QgsPaintEffect for modification by the widget. If the effect is not a QgsEffectStack, it will be automatically converted to an effect stack consisting of the original effect

QgsPaintEffect* QgsEffectStackCompactWidget::paintEffect() const

Returns paint effect attached to the widget.

Returns QgsPaintEffect modified by the widget

void QgsEffectStackCompactWidget::setPaintEffect(QgsPaintEffect* effect)

Sets paint effect attached to the widget,.

Parameters
effect QgsPaintEffect for modification by the widget. If the effect is not a QgsEffectStack, it will be automatically converted to an effect stack consisting of the original effect

void QgsEffectStackCompactWidget::setPreviewPicture(const QPicture& picture)

Sets the picture to use for effect previews for the dialog.

Parameters
picture preview picture