Class: QgsReportSectionFieldGroup¶
A report section consisting of a features.
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 |
|
Returns the field associated with this section. |
|
Returns the footer visibility mode. |
|
Returns the header visibility mode. |
|
Returns the vector layer associated with this section. |
|
Sets the body layout for the section. |
|
Sets whether the body for the section is enabled. |
|
Sets the field associated with this section. |
|
Sets the visibility mode for the footer. |
|
Sets the visibility mode for the header. |
|
Sets the vector layer associated with this section. |
|
Sets whether the field values should be sorted ascending. |
|
Returns |
Attributes
- class qgis.core.QgsReportSectionFieldGroup[source]¶
Bases:
QgsAbstractReportSection
- __init__(parentSection: QgsAbstractReportSection | None = None)
Constructor for QgsReportSectionFieldGroup, attached to the specified
parent
section. Note that ownership is not transferred toparent
.- Parameters:
parentSection (Optional[QgsAbstractReportSection] = None)
- AlwaysInclude = 1¶
- IncludeWhenFeaturesFound = 0¶
- class SectionVisibility¶
Bases:
int
- 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
True
if the body for the section is enabled.See also
See also
See also
- Return type:
bool
Returns the footer visibility mode.
See also
- Return type:
- headerVisibility(self) QgsReportSectionFieldGroup.SectionVisibility [source]¶
Returns the header visibility mode.
See also
- Return type:
- layer(self) QgsVectorLayer | None [source]¶
Returns the vector layer associated with this section.
See also
- Return type:
Optional[QgsVectorLayer]
- setBody(self, body: QgsLayout | None)[source]¶
Sets the
body
layout for the section. Ownership ofbody
is transferred to the report section.See also
See also
See also
- Parameters:
body (Optional[QgsLayout])
- setBodyEnabled(self, enabled: bool)[source]¶
Sets whether the body for the section is
enabled
.See also
See also
See also
- Parameters:
enabled (bool)
- setField(self, field: str | None)[source]¶
Sets the
field
associated with this section.See also
- Parameters:
field (Optional[str])
Sets the visibility mode for the footer.
See also
- Parameters:
visibility (QgsReportSectionFieldGroup.SectionVisibility)
- setHeaderVisibility(self, visibility: QgsReportSectionFieldGroup.SectionVisibility)[source]¶
Sets the visibility mode for the header.
See also
- Parameters:
visibility (QgsReportSectionFieldGroup.SectionVisibility)
- setLayer(self, layer: QgsVectorLayer | None)[source]¶
Sets the vector
layer
associated with this section.See also
- Parameters:
layer (Optional[QgsVectorLayer])
- setSortAscending(self, sortAscending: bool)[source]¶
Sets whether the field values should be sorted ascending. Set to
True
to sort ascending, orFalse
for descending sort.See also
- Parameters:
sortAscending (bool)