Class: QgsLayoutConfigObject¶
An object for property widgets for layout items.
All layout config type widgets should contain this object.
If you are creating a new QgsLayoutItem configuration
widget, you should instead inherit from
QgsLayoutItemBaseWidget (rather then directly working with
QgsLayoutConfigObject).
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Methods
Returns the current layout context coverage layer (if set). |
|
Registers a data defined button, setting up its initial value, connections and description. |
|
Returns the atlas for the layout, if available |
|
Updates a data defined button to reflect the item's current properties. |
- class qgis.gui.QgsLayoutConfigObject[source]¶
Bases:
QObject- __init__(parent: QWidget | None, layoutObject: QgsLayoutObject | None)
Constructor for QgsLayoutConfigObject, linked with the specified
layoutObject.- Parameters:
parent (Optional[QWidget])
layoutObject (Optional[QgsLayoutObject])
- coverageLayer(self) QgsVectorLayer | None[source]¶
Returns the current layout context coverage layer (if set).
- Return type:
- initializeDataDefinedButton(self, button: QgsPropertyOverrideButton | None, key: QgsLayoutObject.DataDefinedProperty)[source]¶
Registers a data defined
button, setting up its initial value, connections and description. The corresponding propertykeymust be specified.- Parameters:
button (Optional[QgsPropertyOverrideButton])
- layoutAtlas(self) QgsLayoutAtlas | None[source]¶
Returns the atlas for the layout, if available
- Return type:
- updateDataDefinedButton(self, button: QgsPropertyOverrideButton | None)[source]¶
Updates a data defined button to reflect the item’s current properties.
- Parameters:
button (Optional[QgsPropertyOverrideButton])