Class: QgsReport

Represents a report for use with the QgsLayout engine.

Reports consist of multiple sections, represented by QgsAbstractReportSection subclasses.

Warning

This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings for unit testing purposes only.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsReport

Base classes

QObject

QgsAbstractReportSection

An abstract base class for QgsReport subsections.

QgsAbstractLayoutIterator

An abstract base class for QgsLayout based classes which can be exported by QgsLayoutExporter.

QgsMasterLayoutInterface

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

Constructor

__init__

Abstract Methods

clone

Virtual Methods

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

layoutProject

Signals

nameChanged

Emitted when the report's name is changed.

class qgis.core.QgsReport[source]

Bases: QObject, QgsAbstractReportSection, QgsMasterLayoutInterface

__init__(project: QgsProject | None)

Constructor for QgsReport, associated with the specified project.

Note that ownership is not transferred to project.

Parameters:

project (QgsProject|None)

abstract clone(self) → QgsReport | None[source]
Return type:

QgsReport|None

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

QgsProject|None

signal nameChanged(name: str)[source]

Emitted when the report’s name is changed.

See also

setName()

Parameters:

name (str)