Class: QgsProjectItem¶
Data item that can be used to represent QGIS projects.
Class Hierarchy¶
Base classes¶
Base class for all items in the model. |
|
- class qgis.core.QgsProjectItem[source]¶
Bases:
QgsDataItem
- __init__(parent: QgsDataItem | None, name: str | None, path: str | None, providerKey: str | None = '')
A data item holding a reference to a QGIS project file.
- Parameters:
parent (Optional[QgsDataItem]) – The parent data item.
name (Optional[str]) – The name of the of the project. Displayed to the user.
path (Optional[str]) – The full path to the project.
providerKey (Optional[str] = '') – key of the provider that created this item