Class: QgsRelationReferenceWidgetWrapper

class qgis.gui.QgsRelationReferenceWidgetWrapper(vl: QgsVectorLayer, fieldIdx: int, editor: QWidget, canvas: QgsMapCanvas, messageBar: QgsMessageBar, parent: QWidget = None)

Bases: QgsEditorWidgetWrapper

Constructor for QgsRelationReferenceWidgetWrapper

Wraps a relation reference widget.

Options: <ul> <li><b>ShowForm</b> <i>If True, an embedded form with the referenced feature will be shown.</i></li> <li><b>MapIdentification</b> <i>Will offer a map tool to pick a referenced feature on the map canvas. Only use for layers with geometry.</i></li> <li><b>ReadOnly</b> <i>If True, will represent the referenced widget in a read-only line edit. Can speed up loading.</i></li> <li><b>AllowNULL</b> <i>Will offer NULL as a value.</i></li> <li><b>Relation</b> <i>The ID of the relation that will be used to define this widget.</i></li> ReadOnly </ul>

Parameters
additionalFieldValues(self) → List[Any]
Return type

List[Any]

additionalFields(self) → List[str]
Return type

List[str]

childEvent()
connectNotify()
createWidget(self, parent: QWidget) → QWidget
Parameters

parent (QWidget) –

Return type

QWidget

customEvent()
disconnectNotify()
formFeature()
initWidget(self, editor: QWidget)
Parameters

editor (QWidget) –

isSignalConnected()
receivers()
sender()
senderSignalIndex()
setEnabled(self, enabled: bool)
Parameters

enabled (bool) –

setFormFeature()
setFormFeatureAttribute()
showIndeterminateState(self)
timerEvent()
updateConstraintWidgetStatus(self)
valid(self) → bool
Return type

bool

value(self) → Any
Return type

Any