Class: QgsDefaultSearchWidgetWrapper

Wraps a search widget.

Default form is just a QgsLineFilterEdit

List of all members, including inherited members

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

Constructor

__init__

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.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsDefaultSearchWidgetWrapper. See the FAQ for more details.

createWidget

class qgis.gui.QgsDefaultSearchWidgetWrapper[source]

Bases: QgsSearchWidgetWrapper

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

Constructor for QgsDefaultSearchWidgetWrapper

Parameters:
  • vl (QgsVectorLayer|None)

  • fieldIdx (int)

  • parent (QWidget|None = 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:

QCheckBox|None

virtual createWidget(self, parent: QWidget | None) → QWidget | None[source]
Parameters:

parent (QWidget|None)

Return type:

QWidget|None

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:

QgsFilterLineEdit|None