Class: QgsDefaultSearchWidgetWrapper¶
- class qgis.gui.QgsDefaultSearchWidgetWrapper¶
Bases:
QgsSearchWidgetWrapper
Wraps a search widget. Default form is just a
QgsLineFilterEdit
QgsDefaultSearchWidgetWrapper(vl:
QgsVectorLayer
, fieldIdx: int, parent: QWidget = None) Constructor for QgsDefaultSearchWidgetWrapperMethods
- rtype:
bool
Returns a pointer to the case sensitivity checkbox in the widget.
clears the expression to search for all features
- param flags:
- param parent:
- rtype:
QgsSearchWidgetWrapper.FilterFlags
- rtype:
str
- param editor:
Returns a pointer to the line edit part of the widget.
- param enabled:
- param exp:
- rtype:
QgsSearchWidgetWrapper.FilterFlags
- rtype:
bool
- 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(self, QChildEvent)¶
- clearExpression(self)¶
clears the expression to search for all features
- clearWidget(self)¶
- connectNotify(self, QMetaMethod)¶
- createExpression(self, flags: 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(self, QEvent)¶
- defaultFlags(self) QgsSearchWidgetWrapper.FilterFlags ¶
- Return type:
- disconnectNotify(self, QMetaMethod)¶
- expression(self) str ¶
- Return type:
str
- initWidget(self, editor: QWidget)¶
- Parameters:
editor (QWidget) –
- isSignalConnected(self, QMetaMethod) bool ¶
- 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:
- receivers(self, PYQT_SIGNAL) int ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setEnabled(self, enabled: bool)¶
- Parameters:
enabled (bool) –
- setExpression(self, exp: str)¶
- Parameters:
exp (str) –
- setFeature(self, feature: QgsFeature)¶
- supportedFlags(self) QgsSearchWidgetWrapper.FilterFlags ¶
- Return type:
- timerEvent(self, QTimerEvent)¶
- valid(self) bool ¶
- Return type:
bool