Class: QgsRelationAggregateSearchWidgetWrapper

class qgis.gui.QgsRelationAggregateSearchWidgetWrapper

Bases: QgsSearchWidgetWrapper

Search widget for the children of a relation. For each attribute of the child, an additional QgsAggregateToolButton will be shown to determine how the values should be aggregated for searching.

QgsRelationAggregateSearchWidgetWrapper(layer: Optional[QgsVectorLayer], wrapper: Optional[QgsRelationWidgetWrapper], parent: Optional[QWidget] = None) Constructor

Methods

applyDirectly

rtype:

bool

childEvent

clearExpression

clears the expression to search for all features

connectNotify

createWidget

param parent:

customEvent

disconnectNotify

eventFilter

param watched:

expression

rtype:

str

initWidget

This method should initialize the editor widget with runtime data.

isSignalConnected

receivers

sender

senderSignalIndex

setExpression

param value:

setFeature

timerEvent

valid

rtype:

bool

applyDirectly(self) bool
Return type:

bool

childEvent(self, a0: QChildEvent | None)
clearExpression(self)

clears the expression to search for all features

connectNotify(self, signal: QMetaMethod)
createWidget(self, parent: QWidget | None) QWidget | None
Parameters:

parent (Optional[QWidget])

Return type:

Optional[QWidget]

customEvent(self, a0: QEvent | None)
disconnectNotify(self, signal: QMetaMethod)
eventFilter(self, watched: QObject | None, event: QEvent | None) bool
Parameters:
  • watched (Optional[QObject])

  • event (Optional[QEvent])

Return type:

bool

expression(self) str
Return type:

str

initWidget(self, editor: QWidget | None)

This method should initialize the editor widget with runtime data. Fill your comboboxes here.

Parameters:

editor – The widget which will represent this attribute editor in a form.

isSignalConnected(self, signal: QMetaMethod) bool
receivers(self, signal: PYQT_SIGNAL) int
sender(self) QObject | None
senderSignalIndex(self) int
setExpression(self, value: str | None)
Parameters:

value (Optional[str])

setFeature(self, feature: QgsFeature)
timerEvent(self, a0: QTimerEvent | None)
valid(self) bool
Return type:

bool