Class: QgsAbstractLayoutIterator¶
An abstract base class for QgsLayout
based classes which can
be exported by QgsLayoutExporter
.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: beginRender()
, count()
, endRender()
, filePath()
, layout()
, next()
Class Hierarchy¶
Subclasses¶
An abstract base class for |
|
Used to render |
Abstract Methods
Called when rendering begins, before iteration commences. |
|
Returns the number of features to iterate over. |
|
Ends the render, performing any required cleanup tasks. |
|
Returns the file path for the current feature, based on a specified base file path and extension. |
|
Returns the layout associated with the iterator. |
|
Iterates to next feature, returning |
- class qgis.core.QgsAbstractLayoutIterator[source]¶
Bases:
object
- abstract beginRender(self) bool [source]¶
Called when rendering begins, before iteration commences. Returns
True
if successful,False
if no iteration is available or required.See also
- Return type:
bool
- abstract endRender(self) bool [source]¶
Ends the render, performing any required cleanup tasks.
- Return type:
bool
- abstract filePath(self, baseFilePath: str | None, extension: str | None) str [source]¶
Returns the file path for the current feature, based on a specified base file path and extension.
- Parameters:
baseFilePath (Optional[str])
extension (Optional[str])
- Return type:
str