Class: QgsCheckboxSearchWidgetWrapper

class qgis.gui.QgsCheckboxSearchWidgetWrapper(vl: QgsVectorLayer, fieldIdx: int, parent: QWidget = None)

Bases: qgis._gui.QgsSearchWidgetWrapper

Constructor for QgsCheckboxSearchWidgetWrapper.

Parameters:
  • vl – associated vector layer
  • fieldIdx – index of associated field
  • parent – parent widget

Wraps a checkbox edit widget for searching.

applyDirectly(self) → bool
childEvent()
clearExpression()
clearWidget(self)
connectNotify()
createExpression(self, flags: Union[QgsSearchWidgetWrapper.FilterFlags, QgsSearchWidgetWrapper.FilterFlag]) → str
createWidget(self, parent: QWidget) → QWidget
customEvent()
defaultFlags(self) → QgsSearchWidgetWrapper.FilterFlags
disconnectNotify()
expression(self) → str
initWidget(self, editor: QWidget)
isSignalConnected()
receivers()
sender()
senderSignalIndex()
setEnabled(self, enabled: bool)
setExpression(self, expression: str)
setFeature()
supportedFlags(self) → QgsSearchWidgetWrapper.FilterFlags
timerEvent()
valid(self) → bool
value(self) → Any

Returns a variant representing the current state of the widget.

Note

this will not be a boolean True or False value, it will instead be the values configured to represent checked and unchecked states in the editor widget configuration.