Class: QgsLayerMetadataSearchResults¶
Container of result records from a layer metadata search.
Contains the records of the layer metadata provider that matched the search criteria and the list of the errors that occurred while searching for metadata.
Added in version 3.28.
Methods
Adds a error to the list of errors. |
|
Adds a Metadata record to the list of results. |
|
Returns the list of errors occurred during a metadata search. |
|
Returns the list of metadata results. |
- class qgis.core.QgsLayerMetadataSearchResults[source]¶
Bases:
object
- addError(self, error: str | None)[source]¶
Adds a
error
to the list of errors.- Parameters:
error (Optional[str])
- addMetadata(self, metadata: QgsLayerMetadataProviderResult)[source]¶
Adds a
Metadata
record to the list of results.- Parameters:
metadata (QgsLayerMetadataProviderResult)
- errors(self) List[str] [source]¶
Returns the list of errors occurred during a metadata search.
- Return type:
List[str]
- metadata(self) List[QgsLayerMetadataProviderResult] ¶
Returns the list of metadata results.
- Return type: