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¶
Methods
Initializes data defined buttons to current atlas coverage layer |
|
Sets data defined button state to match item |
|
Returns the position mode |
|
Sets the layout item |
|
Sets the master layout associated with the item. |
|
Determines if the background of the group box shall be shown |
|
Determines if the frame of the group box shall be shown |
|
Updates the variables widget, refreshing the values of variables shown. |
- class qgis.gui.QgsLayoutItemPropertiesWidget[source]¶
Bases:
QWidget
- __init__(parent: QWidget | None, item: QgsLayoutItem | None)
Constructs a QgsLayoutItemPropertiesWidget with a
parent
and 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)