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¶
Class Hierarchy¶
Base classes¶
- class qgis.gui.QgsLayoutItemPropertiesWidget[source]¶
Bases:
QWidget- __init__(parent: QWidget | None, item: QgsLayoutItem | None)
Constructs a QgsLayoutItemPropertiesWidget with a
parentand for the given layoutitem.- Parameters:
parent (Optional[QWidget])
item (Optional[QgsLayoutItem])
- initializeDataDefinedButtons(self)[source]¶
Initializes data defined buttons to current atlas coverage layer
- positionMode(self) QgsLayoutItem.ReferencePoint[source]¶
Returns the position mode
- Return type:
- 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)