Class: QgsReportSectionLayout¶
A report section consisting of a single QgsLayout body.
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.
Class Hierarchy¶
Base classes¶
An abstract base class for |
|
An abstract base class for |
Methods
Returns the body layout for the section. |
|
Returns |
|
Sets the body layout for the section. |
|
Sets whether the body for the section is enabled. |
- class qgis.core.QgsReportSectionLayout[source]¶
Bases:
QgsAbstractReportSection- __init__(parentSection: QgsAbstractReportSection | None = None)
Constructor for QgsReportSectionLayout, attached to the specified
parentsection. Note that ownership is not transferred toparent.- Parameters:
parentSection (Optional[QgsAbstractReportSection] = None)
- body(self) QgsLayout | None[source]¶
Returns the body layout for the section.
See also
See also
See also
- Return type:
Optional[QgsLayout]
- bodyEnabled(self) bool[source]¶
Returns
Trueif the body for the section is enabled.See also
See also
See also
- Return type:
bool
- setBody(self, body: QgsLayout | None)[source]¶
Sets the
bodylayout for the section. Ownership ofbodyis transferred to the report section.See also
See also
See also
- Parameters:
body (Optional[QgsLayout])