Subgroup: Relation

Class: QgsRelationReferenceWidgetWrapper

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

Bases: qgis._gui.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>

childEvent()
connectNotify()
createWidget(self, parent: QWidget) → QWidget
customEvent()
disconnectNotify()
initWidget(self, editor: QWidget)
isSignalConnected()
receivers()
sender()
senderSignalIndex()
setEnabled(self, enabled: bool)
setValue(self, value: Any)
showIndeterminateState(self)
timerEvent()
updateConstraintWidgetStatus(self)
valid(self) → bool
value(self) → Any