Class: QgsDbRelationDialog¶
A dialog for configuration of the properties of a relationship in a database.
Added in version 3.30.
Class Hierarchy¶
Base classes¶
Methods
Returns the relationship as defined in the dialog. |
|
Sets the current relationship to show properties for in the dialog. |
- class qgis.gui.QgsDbRelationDialog[source]¶
Bases:
QDialog
- __init__(connection: QgsAbstractDatabaseProviderConnection | None, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
Constructor for QgsDbRelationDialog, with the specified
parent
widget and windowflags
, for the specifiedconnection
.Ownership of
connection
is transferred to the widget.- Parameters:
connection (Optional[QgsAbstractDatabaseProviderConnection])
parent (Optional[QWidget] = None)
flags (Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())
- relationship(self) QgsWeakRelation [source]¶
Returns the relationship as defined in the dialog.
See also
- Return type:
- setRelationship(self, relationship: QgsWeakRelation)[source]¶
Sets the current
relationship
to show properties for in the dialog.See also
- Parameters:
relationship (QgsWeakRelation)