Subgroup: Report

Class: QgsReportSectionFieldGroup

class qgis.core.QgsReportSectionFieldGroup

Bases: qgis._core.QgsAbstractReportSection

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.

New in version 3.0: Methods

appendChild Adds a child section, transferring ownership of the section to this section.
beginRender
body Returns the body layout for the section.
bodyEnabled Returns true if the body for the section is enabled.
childCount Return the number of child sections for this report section.
childSection Returns the child section at the specified index.
childSections Return all child sections for this report section.
clone
context Returns the current context for this section.
copyCommonProperties
count
description
endRender
field Returns the field associated with this section.
filePath
footer Returns the footer for the section.
footerEnabled Returns true if the footer for the section is enabled.
header Returns the header for the section.
headerEnabled Returns true if the header for the section is enabled.
icon
insertChild Inserts a child section at the specified index, transferring ownership of the section to this section.
layer Returns the vector layer associated with this section.
layout
next
nextBody
parentSection Returns the parent report section.
prepareFooter Called just before rendering the section’s footer.
prepareHeader
project Returns the associated project.
readPropertiesFromElement
readXml Sets the item state from a DOM element.
removeChild Removes a child section, deleting it.
removeChildAt Removes the child section at the specified index, deleting it.
reset
row Returns the row number of the section within it’s parent section.
setBody Sets the body layout for the section.
setBodyEnabled Sets whether the body for the section is enabled.
setContext Sets the current context for this section.
setField Sets the field associated with this section.
setFooter Sets the footer for the section.
setFooterEnabled Sets whether the footer for the section is enabled.
setHeader Sets the header for the section.
setHeaderEnabled Sets whether the header for the section is enabled.
setLayer Sets the vector layer associated with this section.
setParentSection
setSortAscending Sets whether the field values should be sorted ascending.
sortAscending Returns true if the field values should be sorted ascending, or false for descending sort.
type
writePropertiesToElement
writeXml Stores the section state in a DOM element.

Attributes

Body
Children
End
Footer
Header
beginRender(self) → bool
body(self) → QgsLayout

Returns the body layout for the section.

See also

setBody()

See also

bodyEnabled()

See also

setBodyEnabled()

bodyEnabled(self) → bool

Returns true if the body for the section is enabled.

See also

setBodyEnabled()

See also

body()

See also

setBody()

clone(self) → QgsReportSectionFieldGroup
copyCommonProperties()
description(self) → str
field(self) → str

Returns the field associated with this section.

See also

setField()

icon(self) → QIcon
layer(self) → QgsVectorLayer

Returns the vector layer associated with this section.

See also

setLayer()

nextBody(self) → Tuple[QgsLayout, bool]
prepareHeader(self)
readPropertiesFromElement(self, element: QDomElement, document: QDomDocument, context: QgsReadWriteContext) → bool
reset(self)
setBody(self, body: QgsLayout)

Sets the body layout for the section. Ownership of body is transferred to the report section.

See also

body()

See also

bodyEnabled()

See also

setBodyEnabled()

setBodyEnabled(self, enabled: bool)

Sets whether the body for the section is enabled.

See also

bodyEnabled()

See also

body()

See also

setBody()

setField(self, field: str)

Sets the field associated with this section.

See also

field()

setLayer(self, layer: QgsVectorLayer)

Sets the vector layer associated with this section.

See also

layer()

setParentSection(self, parentSection: QgsAbstractReportSection)
setSortAscending(self, sortAscending: bool)

Sets whether the field values should be sorted ascending. Set to true to sort ascending, or false for descending sort.

See also

sortAscending()

sortAscending(self) → bool

Returns true if the field values should be sorted ascending, or false for descending sort.

type(self) → str
writePropertiesToElement(self, element: QDomElement, document: QDomDocument, context: QgsReadWriteContext) → bool