Class: QgsDbRelationDialog

A dialog for configuration of the properties of a relationship in a database.

Added in version 3.30.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsDbRelationDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

relationship

Returns the relationship as defined in the dialog.

setRelationship

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 window flags, for the specified connection.

Ownership of connection is transferred to the widget.

Parameters:
relationship(self) QgsWeakRelation[source]

Returns the relationship as defined in the dialog.

Return type:

QgsWeakRelation

setRelationship(self, relationship: QgsWeakRelation)[source]

Sets the current relationship to show properties for in the dialog.

See also

relationship()

Parameters:

relationship (QgsWeakRelation)