Class: QgsConnectionsRootItem

A browser item that represents a root group of connections from a single data provider.

Added in version 3.16.

Class Hierarchy

Inheritance diagram of qgis.core.QgsConnectionsRootItem

Base classes

QgsDataCollectionItem

A browser item for collections of data.

QgsDataItem

Base class for all items in the model.

QObject

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. The path string can take any form, but QgsSchemaItem items pointing to different logical locations should always use a different item path.

The optional providerKey string can be used to specify the key for the QgsDataItemProvider that created this item.

Parameters:
  • parent (Optional[QgsDataItem])

  • name (Optional[str])

  • path (Optional[str] = '')

  • providerKey (Optional[str] = '')