Class: 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.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: createMultiFrame()
- class qgis.core.QgsLayoutMultiFrameAbstractMetadata[source]¶
Bases:
object- __init__(type: int, visibleName: str | None)
Constructor for QgsLayoutMultiFrameAbstractMetadata with the specified class
typeandvisibleName.- Parameters:
type (int)
visibleName (Optional[str])
- __init__(a0: QgsLayoutMultiFrameAbstractMetadata)
- Parameters:
- abstract createMultiFrame(self, layout: QgsLayout | None) QgsLayoutMultiFrame | None[source]¶
Creates a layout multiframe of this class for a specified
layout.- Parameters:
layout (Optional[QgsLayout])
- Return type:
Optional[QgsLayoutMultiFrame]
- virtual icon(self) QIcon[source]¶
Returns an icon representing the layout multiframe type.
- Return type:
QIcon
- virtual resolvePaths(self, properties: Dict[str, Any], pathResolver: QgsPathResolver, saving: bool)[source]¶
Resolve paths in the item’s
properties(if there are any paths). WhensavingisTrue, paths are converted from absolute to relative, whensavingisFalse, 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.- Parameters:
properties (Dict[str, Any])
pathResolver (QgsPathResolver)
saving (bool)