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.

New in version 3.0.

QgsRelationAggregateSearchWidgetWrapper(layer: QgsVectorLayer, wrapper: QgsRelationWidgetWrapper, parent: 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, QChildEvent)
clearExpression(self)

clears the expression to search for all features

connectNotify(self, QMetaMethod)
createWidget(self, parent: QWidget)QWidget
Parameters

parent (QWidget) –

Return type

QWidget

customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
eventFilter(self, watched: QObject, event: QEvent)bool
Parameters
  • watched (QObject) –

  • event (QEvent) –

Return type

bool

expression(self)str
Return type

str

initWidget(self, editor: QWidget)

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, QMetaMethod)bool
receivers(self, PYQT_SIGNAL)int
sender(self)QObject
senderSignalIndex(self)int
setExpression(self, value: str)
Parameters

value (str) –

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

bool