Class: QgsRelationshipsItem¶
Contains a collection of relationship items.
Added in version 3.28.
Class Hierarchy¶
Base classes¶
Base class for all items in the model.  | 
|
Methods
Returns the connection URI  | 
|
Returns the schema for filtering relationships, if set.  | 
|
Returns the table name for filtering relationships, if set.  | 
- class qgis.core.QgsRelationshipsItem[source]¶
 Bases:
QgsDataItem- __init__(parent: QgsDataItem | None, path: str | None, connectionUri: str | None, providerKey: str | None, schema: str | None = '', tableName: str | None = '')
 Constructor for QgsRelationshipsItem, with the specified
parentitem.The
pathargument gives the item path in the browser tree. Thepathstring can take any form, butQgsDataItemitems pointing to different logical locations should always use a different itempath. TheconnectionUriargument is the connection part of the layer URI that it is used internally to create a connection and retrieve fields information. TheproviderKeystring can be used to specify the key for theQgsDataItemProviderthat created this item.The optional
schemaandtableNamearguments can be used to restrict the visible relationships to those with a matching parent table.- Parameters:
 parent (Optional[QgsDataItem])
path (Optional[str])
connectionUri (Optional[str])
providerKey (Optional[str])
schema (Optional[str] = '')
tableName (Optional[str] = '')