Class: QgsLayoutItemPropertiesWidget

A widget for controlling the common properties of layout items (e.g. position and size, background, stroke, frame). This widget can be embedded into other layout item widgets.

QgsLayoutItemPropertiesWidget

QgsLayoutItemPropertiesWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsLayoutItemPropertiesWidget

Base classes

QWidget

QObject

QPaintDevice

class qgis.gui.QgsLayoutItemPropertiesWidget[source]

Bases: QWidget

__init__(parent: QWidget | None, item: QgsLayoutItem | None)

Constructs a QgsLayoutItemPropertiesWidget with a parent and for the given layout item.

Parameters:
initializeDataDefinedButtons(self)[source]

Initializes data defined buttons to current atlas coverage layer

populateDataDefinedButtons(self)[source]

Sets data defined button state to match item

positionMode(self) QgsLayoutItem.ReferencePoint[source]

Returns the position mode

Return type:

QgsLayoutItem.ReferencePoint

setItem(self, item: QgsLayoutItem | None)[source]

Sets the layout item

Parameters:

item (Optional[QgsLayoutItem])

setMasterLayout(self, masterLayout: QgsMasterLayoutInterface | None)[source]

Sets the master layout associated with the item.

Added in version 3.10.

Parameters:

masterLayout (Optional[QgsMasterLayoutInterface])

showBackgroundGroup(self, showGroup: bool)[source]

Determines if the background of the group box shall be shown

Parameters:

showGroup (bool)

showFrameGroup(self, showGroup: bool)[source]

Determines if the frame of the group box shall be shown

Parameters:

showGroup (bool)

updateVariables(self)[source]

Updates the variables widget, refreshing the values of variables shown.

Added in version 3.10.