Subgroup: other
Class: QgsDefaultSearchWidgetWrapper¶
-
class
qgis.gui.
QgsDefaultSearchWidgetWrapper
¶ Bases:
qgis._gui.QgsSearchWidgetWrapper
Wraps a search widget. Default form is just a QgsLineFilterEdit
Methods
aggregate
If in AggregateSearch mode, which aggregate should be used to construct the filter expression. applyDirectly
blockSignals
caseSensitiveCheckBox
Returns a pointer to the case sensitivity checkbox in the widget. childEvent
children
clearExpression
clearWidget
config
Use this inside your overridden classes to access the configuration. connectNotify
context
Returns information about the context in which this widget is shown createExpression
createFieldIdentifier
Get a field name or expression to use as field comparison. createWidget
customEvent
dataDefinedProperties
Returns a reference to the editor widget’s property collection, used for data defined overrides. defaultFlags
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
exclusiveFilterFlags
Returns a list of exclusive filter flags, which cannot be combined with other flags (e.g., EqualTo/NotEqualTo) expression
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] fromWidget
Will return a wrapper for a given widget inherits
initWidget
installEventFilter
isSignalConnected
isWidgetType
isWindowType
killTimer
layer
Access the QgsVectorLayer
, you are working onlineEdit
Returns a pointer to the line edit part of the widget. metaObject
moveToThread
nonExclusiveFilterFlags
Returns a list of non-exclusive filter flags, which can be combined with other flags (e.g., CaseInsensitive) objectName
parent
property
propertyDefinitions
Returns the editor widget property definitions. pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
sender
senderSignalIndex
setAggregate
If in AggregateSearch mode, which aggregate should be used to construct the filter expression. setConfig
Will set the config of this wrapper to the specified config. setContext
Set the context in which this widget is shown setDataDefinedProperties
Sets the editor widget’s property collection, used for data defined overrides. setEnabled
setExpression
setFeature
setObjectName
setParent
setProperty
signalsBlocked
startTimer
supportedFlags
thread
timerEvent
toString
Returns a translated string representing a filter flag. tr
valid
widget
Access the widget managed by this wrapper Attributes
Between
CaseInsensitive
Contains
DocumentViewerContent
DoesNotContain
EndsWith
EqualTo
GreaterThan
GreaterThanOrEqualTo
IsNotBetween
IsNotNull
IsNull
LessThan
LessThanOrEqualTo
NotEqualTo
RootPath
StartsWith
destroyed
destroyed(self, QObject = None) [signal] expressionChanged
Emitted whenever the expression changes objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
valueChanged
Emitted when a user changes the value of the search widget. valueCleared
Emitted when a user changes the value of the search widget back to an empty, default state. -
applyDirectly
(self) → 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
-
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
()¶
-
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
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setEnabled
(self, enabled: bool)¶
-
setExpression
(self, exp: str)¶
-
setFeature
()¶
-
supportedFlags
(self) → QgsSearchWidgetWrapper.FilterFlags¶
-
timerEvent
()¶
-
valid
(self) → bool¶
-