Class: QgsLayerMetadataResultsModel¶
The QgsLayerMetadataResultsModel
class handles the metadata
fetching from the registered layer metadata providers.
Added in version 3.28.
Class Hierarchy¶
Base classes¶
Enums
The Roles enum represents the user roles for the model. |
|
alias of |
Methods
Cancels the results fetching. |
|
Load/Reload model data synchronously. |
|
Load/Reload model data asynchronously using threads. |
|
Triggered when metadata results have been fetched and can be added to the model. |
Signals
Emitted when the progress changed to progress. |
Attributes
- class qgis.gui.QgsLayerMetadataResultsModel[source]¶
Bases:
QAbstractTableModel
- __init__(searchContext: QgsMetadataSearchContext, parent: QObject | None = None)
Constructs a QgsLayerMetadataResultsModel from a
searchContext
and an optionalparent
.- Parameters:
searchContext (QgsMetadataSearchContext)
parent (Optional[QObject] = None)
- Abstract = 2¶
- class CustomRole(*values)¶
Bases:
IntEnum
The Roles enum represents the user roles for the model.
Note
Prior to QGIS 3.36 this was available as QgsLayerMetadataResultsModel.Roles
Added in version 3.36.
Metadata
: Layer metadata role
- DataProviderName = 3¶
- GeometryType = 4¶
- Identifier = 0¶
- Roles¶
alias of
CustomRole
- class Sections¶
Bases:
int
- Title = 1¶
- signal progressChanged(progress: int)[source]¶
Emitted when the progress changed to
progress
.- Parameters:
progress (int)
- resultsReady(self, results: QgsLayerMetadataSearchResults)[source]¶
Triggered when metadata
results
have been fetched and can be added to the model.- Parameters:
results (QgsLayerMetadataSearchResults)