Class: QgsPrintLayout

Print layout, a QgsLayout subclass for static or atlas-based layouts.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsPrintLayout

Base classes

QgsLayout

Base class for layouts, which can contain items such as maps, labels, scalebars, etc.

QGraphicsScene

QObject

QgsExpressionContextGenerator

Abstract interface for generating an expression context.

QgsLayoutUndoObjectInterface

Interface for layout objects which support undo/redo commands.

QgsMasterLayoutInterface

Interface for master layout type objects, such as print layouts and reports.

Constructor

__init__

Methods

atlas

Returns the print layout's atlas.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsPrintLayout. See the FAQ for more details.

clone

layoutProject

Signals

nameChanged

Emitted when the layout's name is changed.

class qgis.core.QgsPrintLayout[source]

Bases: QgsLayout, QgsMasterLayoutInterface

__init__(project: QgsProject | None)

Constructor for QgsPrintLayout.

Parameters:

project (QgsProject|None)

atlas(self) → QgsLayoutAtlas | None[source]

Returns the print layout’s atlas.

Return type:

QgsLayoutAtlas|None

virtual clone(self) → QgsPrintLayout | None[source]
Return type:

QgsPrintLayout|None

virtual layoutProject(self) → QgsProject | None[source]
Return type:

QgsProject|None

signal nameChanged(name: str)[source]

Emitted when the layout’s name is changed.

See also

setName()

Parameters:

name (str)