Class: QgsLayoutConfigObject

class qgis.gui.QgsLayoutConfigObject(parent: QWidget, layoutObject: QgsLayoutObject)

Bases: PyQt5.QtCore.QObject

Constructor for QgsLayoutConfigObject, linked with the specified layoutObject.

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).

New in version 3.0:

Methods

childEvent

connectNotify

coverageLayer

Returns the current layout context coverage layer (if set).

customEvent

disconnectNotify

initializeDataDefinedButton

Registers a data defined button, setting up its initial value, connections and description.

isSignalConnected

layoutAtlas

Returns the atlas for the layout, if available

receivers

sender

senderSignalIndex

timerEvent

updateDataDefinedButton

Updates a data defined button to reflect the item's current properties.

childEvent(self, QChildEvent)
connectNotify(self, QMetaMethod)
coverageLayer(self) QgsVectorLayer

Returns the current layout context coverage layer (if set).

Return type

QgsVectorLayer

customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
initializeDataDefinedButton(self, button: QgsPropertyOverrideButton, key: QgsLayoutObject.DataDefinedProperty)

Registers a data defined button, setting up its initial value, connections and description. The corresponding property key must be specified.

Parameters
isSignalConnected(self, QMetaMethod) bool
layoutAtlas(self) QgsLayoutAtlas

Returns the atlas for the layout, if available

Return type

QgsLayoutAtlas

receivers(self, PYQT_SIGNAL) int
sender(self) QObject
senderSignalIndex(self) int
timerEvent(self, QTimerEvent)
updateDataDefinedButton(self, button: QgsPropertyOverrideButton)

Updates a data defined button to reflect the item’s current properties.

Parameters

button (QgsPropertyOverrideButton) –