Class: QgsDatabaseSchemaItem¶
A browser item that represents a database schema item.
Added in version 3.16.
Class Hierarchy¶
Base classes¶
A browser item for collections of data. |
|
Base class for all items in the model. |
|
- class qgis.core.QgsDatabaseSchemaItem[source]¶
Bases:
QgsDataCollectionItem- __init__(parent: QgsDataItem | None, name: str | None, path: str | None = '', providerKey: str | None = '')
Constructor for QgsDatabaseSchemaItem, with the specified
parentitem.The
nameargument specifies the text to show in the model for the item. A translated string should be used wherever appropriate.The
pathargument gives the item path in the browser tree. Thepathstring can take any form, butQgsSchemaItemitems pointing to different logical locations should always use a different itempath.The optional
providerKeystring can be used to specify the key for theQgsDataItemProviderthat created this item.- Parameters:
parent (Optional[QgsDataItem])
name (Optional[str])
path (Optional[str] = '')
providerKey (Optional[str] = '')