Class: QgsDefaultSearchWidgetWrapper

Wraps a search widget.

Default form is just a QgsLineFilterEdit

Class Hierarchy

Inheritance diagram of qgis.gui.QgsDefaultSearchWidgetWrapper

Base classes

QgsSearchWidgetWrapper

Shows a search widget on a filter form.

QgsWidgetWrapper

Manages an editor widget.

QObject

Methods

caseSensitiveCheckBox

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

lineEdit

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

class qgis.gui.QgsDefaultSearchWidgetWrapper[source]

Bases: QgsSearchWidgetWrapper

__init__(vl: QgsVectorLayer | None, fieldIdx: int, parent: QWidget | None = None)

Constructor for QgsDefaultSearchWidgetWrapper

Parameters:
  • vl (Optional[QgsVectorLayer])

  • fieldIdx (int)

  • parent (Optional[QWidget] = None)

caseSensitiveCheckBox(self) QCheckBox | None[source]

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:

Optional[QCheckBox]

lineEdit(self) QgsFilterLineEdit | None[source]

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:

Optional[QgsFilterLineEdit]