Subgroup: Date

Class: QgsDateTimeSearchWidgetWrapper

class qgis.gui.QgsDateTimeSearchWidgetWrapper

Bases: qgis._gui.QgsSearchWidgetWrapper

Wraps a date/time edit widget for searching.

New in version 2.16: Methods

aggregate If in AggregateSearch mode, which aggregate should be used to construct the filter expression.
applyDirectly
blockSignals
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 on
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
value Returns a variant representing the current state of the widget, respecting the editor widget’s configured field format for date/time values.
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
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()
receivers()
sender()
senderSignalIndex()
setEnabled(self, enabled: bool)
setExpression(self, exp: str)
setFeature()
supportedFlags(self) → QgsSearchWidgetWrapper.FilterFlags
timerEvent()
valid(self) → bool
value(self) → Any

Returns a variant representing the current state of the widget, respecting the editor widget’s configured field format for date/time values.