Class: QgsDateTimeSearchWidgetWrapper

class qgis.gui.QgsDateTimeSearchWidgetWrapper(vl: QgsVectorLayer, fieldIdx: int, parent: QWidget = None)

Bases: qgis._gui.QgsSearchWidgetWrapper

Constructor for QgsDateTimeSearchWidgetWrapper.

Parameters:
  • vl – associated vector layer
  • fieldIdx – index of associated field
  • parent – parent widget

Wraps a date/time edit widget for searching.

New in version 2.16: Methods

applyDirectly
childEvent
clearExpression
clearWidget
connectNotify
createExpression
createWidget
customEvent
defaultFlags
disconnectNotify
expression
initWidget
isSignalConnected
receivers
sender
senderSignalIndex
setEnabled
setExpression
setFeature
supportedFlags
timerEvent
valid
value Returns a variant representing the current state of the widget, respecting the editor widget’s configured field format for date/time values.

Signals

Attributes

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.