Class: QgsDateTimeSearchWidgetWrapper

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

Bases: QgsSearchWidgetWrapper

Constructor for QgsDateTimeSearchWidgetWrapper.

Parameters
  • vl (QgsVectorLayer) – associated vector layer

  • fieldIdx (int) – index of associated field

  • parent (QWidget = None) – parent widget

Wraps a date/time edit widget for searching.

Methods

applyDirectly

rtype

bool

childEvent

clearExpression

clears the expression to search for all features

clearWidget

connectNotify

createExpression

param flags

createWidget

param parent

customEvent

defaultFlags

rtype

QgsSearchWidgetWrapper.FilterFlags

disconnectNotify

expression

rtype

str

initWidget

param editor

isSignalConnected

receivers

sender

senderSignalIndex

setEnabled

param enabled

setExpression

param exp

setFeature

supportedFlags

rtype

QgsSearchWidgetWrapper.FilterFlags

timerEvent

valid

rtype

bool

value

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

applyDirectly(self) → bool
Return type

bool

childEvent(self, QChildEvent)
clearExpression(self)

clears the expression to search for all features

clearWidget(self)
connectNotify(self, QMetaMethod)
createExpression(self, flags: Union[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

QgsSearchWidgetWrapper.FilterFlags

disconnectNotify(self, QMetaMethod)
expression(self) → str
Return type

str

initWidget(self, editor: QWidget)
Parameters

editor (QWidget) –

isSignalConnected(self, QMetaMethod) → bool
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

QgsSearchWidgetWrapper.FilterFlags

timerEvent(self, QTimerEvent)
valid(self) → bool
Return type

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.

Return type

Any