Subgroup: Layout

Class: QgsLayoutMultiFrameAbstractMetadata

class qgis.core.QgsLayoutMultiFrameAbstractMetadata(type: int, visibleName: str)

Bases: sip.wrapper

Constructor for QgsLayoutMultiFrameAbstractMetadata with the specified class type and visibleName.

QgsLayoutMultiFrameAbstractMetadata(QgsLayoutMultiFrameAbstractMetadata)

Stores metadata about one layout multiframe class.

A companion class, QgsLayoutMultiFrameAbstractGuiMetadata, handles the GUI behavior of QgsLayoutMultiFrames.

Note

In C++ you can use QgsLayoutMultiFrameMetadata convenience class.

New in version 3.0: Methods

createMultiFrame Creates a layout multiframe of this class for a specified layout.
icon Returns an icon representing the layout multiframe type.
resolvePaths Resolve paths in the item’s properties (if there are any paths).
type Returns the unique item type code for the layout multiframe class.
visibleName Returns a translated, user visible name for the layout multiframe class.

Signals

Attributes

createMultiFrame(self, layout: QgsLayout) → QgsLayoutMultiFrame

Creates a layout multiframe of this class for a specified layout.

icon(self) → QIcon

Returns an icon representing the layout multiframe type.

resolvePaths(self, properties: Dict[str, Any], pathResolver: QgsPathResolver, saving: bool)

Resolve paths in the item’s properties (if there are any paths). When saving is true, paths are converted from absolute to relative, when saving is false, paths are converted from relative to absolute. This ensures that paths in project files can be relative, but in item instances the paths are always absolute.

type(self) → int

Returns the unique item type code for the layout multiframe class.

visibleName(self) → str

Returns a translated, user visible name for the layout multiframe class.