Class: QgsDefaultSearchWidgetWrapper

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

Bases: QgsSearchWidgetWrapper

Constructor for QgsDefaultSearchWidgetWrapper

Wraps a search widget. Default form is just a QgsLineFilterEdit

Parameters
applyDirectly(self) → bool
Return type

bool

caseSensitiveCheckBox(self) → QCheckBox

Returns a pointer to the case sensitivity checkbox in the widget.

Note

this method is in place for unit testing only, and is not considered stable API

Return type

QCheckBox

childEvent()
clearExpression()
clearWidget(self)
connectNotify()
createExpression(self, flags: Union[QgsSearchWidgetWrapper.FilterFlags, QgsSearchWidgetWrapper.FilterFlag]) → str
Parameters

flags (Union[QgsSearchWidgetWrapper.FilterFlags) –

Return type

str

createWidget(self, parent: QWidget) → QWidget
Parameters

parent (QWidget) –

Return type

QWidget

customEvent()
defaultFlags(self) → QgsSearchWidgetWrapper.FilterFlags
Return type

QgsSearchWidgetWrapper.FilterFlags

disconnectNotify()
expression(self) → str
Return type

str

initWidget(self, editor: QWidget)
Parameters

editor (QWidget) –

isSignalConnected()
lineEdit(self)QgsFilterLineEdit

Returns a pointer to the line edit part of the widget.

Note

this method is in place for unit testing only, and is not considered stable API

Return type

QgsFilterLineEdit

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

enabled (bool) –

setExpression(self, exp: str)
Parameters

exp (str) –

setFeature()
supportedFlags(self) → QgsSearchWidgetWrapper.FilterFlags
Return type

QgsSearchWidgetWrapper.FilterFlags

timerEvent()
valid(self) → bool
Return type

bool