Skip to main content

QCustomDateRangeEdit

QCustomDateEdit / QCustomTimeEdit / QCustomDateRangeEdit

Tokenized date & time inputs built on Qt's date/time editors (correct calendar popup, keyboard entry and validation) plus a two-field date range picker that keeps start <= end. Styled from design tokens; the calendar popup is scoped via the object name "customCalendar".

At a glance​

TierFree (GPLv3)
Importfrom Custom_Widgets.QCustomDateTimeEdit import QCustomDateRangeEdit
Qt DesignerYes — drag it from the palette

Quick start​

from Custom_Widgets.QCustomDateTimeEdit import QCustomDateRangeEdit

widget = QCustomDateRangeEdit()

Signals​

Signal
rangeChanged(PyObject,PyObject)

Methods​

MethodDescription
dateRange()Date range.
endDate()End date.
endEdit()End edit.
rangeChanged(...)Range changed.
setDateRange(start, end)Set the date range.
startDate()Start the date.
startEdit()Start the edit.

Theming​

Colours come from the design tokens, so they follow the active theme. Roles used: on-surface.

See Design tokens.

QCustomButtonGroup · QCustomCheckBox · QCustomColorPicker · QCustomComboBox · QCustomDateEdit · QCustomDateRangePicker · QCustomEmojiPicker · QCustomFileDropZone