Subgroup: Layout
Class: QgsLayoutItemRegistry¶
-
class
qgis.core.
QgsLayoutItemRegistry
¶ Bases:
PyQt5.QtCore.QObject
Registry of available layout item types.
QgsLayoutItemRegistry is not usually directly created, but rather accessed through
QgsApplication.layoutItemRegistry()
A companion class,
QgsLayoutItemGuiRegistry
, handles the GUI behavior of layout items.New in version 3.0: Methods
addLayoutItemType
Registers a new layout item type. addLayoutMultiFrameType
Registers a new layout multiframe type. blockSignals
childEvent
children
connectNotify
createItem
Creates a new instance of a layout item given the item type
, and targetlayout
.createMultiFrame
Creates a new instance of a layout multiframe given the multiframe type
, and targetlayout
.customEvent
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
itemMetadata
Returns the metadata for the specified item type
.itemTypes
Returns a map of available item types to translated name. killTimer
metaObject
moveToThread
multiFrameMetadata
Returns the metadata for the specified multiframe type
.objectName
parent
populate
Populates the registry with standard item types. property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
resolvePaths
Resolve paths in properties of a particular symbol layer. sender
senderSignalIndex
setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
tr
Attributes
LayoutAttributeTable
LayoutFrame
LayoutGroup
LayoutHtml
LayoutItem
LayoutLabel
LayoutLegend
LayoutMap
LayoutPage
LayoutPicture
LayoutPolygon
LayoutPolyline
LayoutScaleBar
LayoutShape
LayoutTextTable
PluginItem
destroyed
destroyed(self, QObject = None) [signal] multiFrameTypeAdded
Emitted whenever a new multiframe type is added to the registry, with the specified type
and visiblename
.objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
typeAdded
Emitted whenever a new item type is added to the registry, with the specified type
and visiblename
.-
class
ItemType
¶ Bases:
int
-
LayoutAttributeTable
= 65649¶
-
LayoutFrame
= 65647¶
-
LayoutGroup
= 65637¶
-
LayoutHtml
= 65648¶
-
LayoutItem
= 65636¶
-
LayoutLabel
= 65641¶
-
LayoutLegend
= 65642¶
-
LayoutMap
= 65639¶
-
LayoutPage
= 65638¶
-
LayoutPicture
= 65640¶
-
LayoutPolygon
= 65644¶
-
LayoutPolyline
= 65645¶
-
LayoutScaleBar
= 65646¶
-
LayoutShape
= 65643¶
-
LayoutTextTable
= 65650¶
-
PluginItem
= 66650¶
-
addLayoutItemType
(self, metadata: QgsLayoutItemAbstractMetadata) → bool¶ Registers a new layout item type. Takes ownership of the metadata instance.
See also
-
addLayoutMultiFrameType
(self, metadata: QgsLayoutMultiFrameAbstractMetadata) → bool¶ Registers a new layout multiframe type. Takes ownership of the metadata instance.
See also
-
childEvent
()¶
-
connectNotify
()¶
-
createItem
(self, type: int, layout: QgsLayout) → QgsLayoutItem¶ Creates a new instance of a layout item given the item
type
, and targetlayout
.See also
-
createMultiFrame
(self, type: int, layout: QgsLayout) → QgsLayoutMultiFrame¶ Creates a new instance of a layout multiframe given the multiframe
type
, and targetlayout
.See also
-
customEvent
()¶
-
disconnectNotify
()¶
-
isSignalConnected
()¶
-
itemMetadata
(self, type: int) → QgsLayoutItemAbstractMetadata¶ Returns the metadata for the specified item
type
. Returns None if a corresponding type was not found in the registry.See also
-
itemTypes
(self) → Dict[int, str]¶ Returns a map of available item types to translated name.
-
multiFrameMetadata
(self, type: int) → QgsLayoutMultiFrameAbstractMetadata¶ Returns the metadata for the specified multiframe
type
. Returns None if a corresponding type was not found in the registry.See also
-
multiFrameTypeAdded
¶ Emitted whenever a new multiframe type is added to the registry, with the specified
type
and visiblename
. [signal]
-
populate
(self) → bool¶ Populates the registry with standard item types. If called on a non-empty registry then this will have no effect and will return false.
-
receivers
()¶
-
resolvePaths
(self, type: int, properties: Dict[str, Any], pathResolver: QgsPathResolver, saving: bool)¶ Resolve paths in properties of a particular symbol layer. This normally means converting relative paths to absolute paths when loading and converting absolute paths to relative paths when saving.
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶
-
typeAdded
¶ Emitted whenever a new item type is added to the registry, with the specified
type
and visiblename
. [signal]
-
class