Class: QgsConnectionsRootItem¶
A browser item that represents a root group of connections from a single data provider.
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.QgsConnectionsRootItem[source]¶
Bases:
QgsDataCollectionItem
- __init__(parent: QgsDataItem | None, name: str | None, path: str | None = '', providerKey: str | None = '')
Constructor for QgsConnectionsRootItem, with the specified
parent
item.The
name
argument specifies the text to show in the model for the item. A translated string should be used wherever appropriate.The
path
argument gives the item path in the browser tree. Thepath
string can take any form, butQgsSchemaItem
items pointing to different logical locations should always use a different itempath
.The optional
providerKey
string can be used to specify the key for theQgsDataItemProvider
that created this item.- Parameters:
parent (Optional[QgsDataItem])
name (Optional[str])
path (Optional[str] = '')
providerKey (Optional[str] = '')