PythonQt.QtGui.QDateTimeEdit · declarations 001
Back to PythonQt.QtGui.QDateTimeEdit
calendarPopup
instance-attribute
calendarPopup: bool
Qt 5 reference:
calendarPopup : bool
This property holds the current calendar pop-up show mode.
The calendar pop-up will be shown upon clicking the arrow button. This property is valid only if there is a valid date display format.
This property was introduced in Qt 4.2.
Access functions:
| bool | calendarPopup() const |
|---|---|
| void | setCalendarPopup(bool enable) |
See also setDisplayFormat().
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#calendarPopup
calendarWidget
calendarWidget() -> Any
X.calendarWidget() -> PythonQt.QtGui.QCalendarWidget
Supplemental documentation: Qt 5 reference:
QCalendarWidget *QDateTimeEdit::calendarWidget() const
Returns the calendar widget for the editor if calendarPopup is set to true and (sections() \& DateSections_Mask) !\= 0.
This function creates and returns a calendar widget if none has been set.
This function was introduced in Qt 4.4.
See also setCalendarWidget().
Upstream PySide2 reference signatures (binding differences may apply):
calendarWidget(self) -> PySide2.QtWidgets.QCalendarWidget
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#calendarWidget
clear
clear() -> None
X.clear()
Supplemental documentation: Qt 5 reference:
[override virtual] void QDateTimeEdit::clear()
Reimplements: QAbstractSpinBox::clear().
Upstream PySide2 reference signatures (binding differences may apply):
clear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#clear
clearMaximumDate
clearMaximumDate() -> None
X.clearMaximumDate()
Upstream PySide2 reference signatures (binding differences may apply):
clearMaximumDate(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#clearMaximumDate
clearMaximumDateTime
clearMaximumDateTime() -> None
X.clearMaximumDateTime()
Upstream PySide2 reference signatures (binding differences may apply):
clearMaximumDateTime(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#clearMaximumDateTime
clearMaximumTime
clearMaximumTime() -> None
X.clearMaximumTime()
Upstream PySide2 reference signatures (binding differences may apply):
clearMaximumTime(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#clearMaximumTime
clearMinimumDate
clearMinimumDate() -> None
X.clearMinimumDate()
Upstream PySide2 reference signatures (binding differences may apply):
clearMinimumDate(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#clearMinimumDate
clearMinimumDateTime
clearMinimumDateTime() -> None
X.clearMinimumDateTime()
Upstream PySide2 reference signatures (binding differences may apply):
clearMinimumDateTime(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#clearMinimumDateTime
clearMinimumTime
clearMinimumTime() -> None
X.clearMinimumTime()
Upstream PySide2 reference signatures (binding differences may apply):
clearMinimumTime(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#clearMinimumTime
currentSection
instance-attribute
currentSection: Any
Qt 5 reference:
currentSection : Section
This property holds the current section of the spinbox.
Access functions:
| QDateTimeEdit::Section | currentSection() const |
|---|---|
| void | setCurrentSection(QDateTimeEdit::Section section) |
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#currentSection
currentSectionIndex
instance-attribute
currentSectionIndex: int
Qt 5 reference:
currentSectionIndex : int
This property holds the current section index of the spinbox.
If the format is 'yyyy/MM/dd', the displayText is '2001/05/21', and the cursorPosition is 5, currentSectionIndex returns 1. If the cursorPosition is 3, currentSectionIndex is 0, and so on.
This property was introduced in Qt 4.3.
Access functions:
| int | currentSectionIndex() const |
|---|---|
| void | setCurrentSectionIndex(int index) |
See also setCurrentSection() and currentSection().
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#currentSectionIndex
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.customContextMenuRequested; argument details are not documented.
date
instance-attribute
date: QDate
Qt 5 reference:
date : QDate
This property holds the QDate that is set in the widget.
By default, this property contains a date that refers to January 1, 2000.
Access functions:
| QDate | date() const |
|---|---|
| void | setDate(const QDate \&date) |
Notifier signal:
| void | dateChanged(const QDate \&date) |
|---|---|
QDate QDateTimeEdit::date() const
Returns the date of the date time edit.
Note: Getter function for property date.
See also setDate().
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#date
dateChanged
dateChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.dateChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDateTimeEdit::dateChanged(const QDate \&date)
This signal is emitted whenever the date is changed. The new date is passed in date.
Note: Notifier signal for property date.
See also Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#dateChanged
dateTime
instance-attribute
dateTime: QDateTime
Qt 5 reference:
dateTime : QDateTime
This property holds the QDateTime that is set in the QDateTimeEdit.
When setting this property the timespec of the QDateTimeEdit remains the same and the timespec of the new QDateTime is ignored.
By default, this property is set to the start of 2000 CE. It can only be set to a valid QDateTime value. If any operation causes this property to have an invalid date-time as value, it is reset to the value of the minimumDateTime property.
If the QDateTimeEdit has no date fields, setting this property sets the widget's date-range to start and end on the date of the new value of this property.
Access functions:
| QDateTime | dateTime() const |
|---|---|
| void | setDateTime(const QDateTime \&dateTime) |
Notifier signal:
| void | dateTimeChanged(const QDateTime \&datetime) |
|---|---|
See also date, time, minimumDateTime, and maximumDateTime.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#dateTime
dateTimeChanged
dateTimeChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.dateTimeChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDateTimeEdit::dateTimeChanged(const QDateTime \&datetime)
This signal is emitted whenever the date or time is changed. The new date and time is passed in datetime.
Note: Notifier signal for property dateTime.
See also Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#dateTimeChanged
dateTimeFromText
dateTimeFromText(text: str) -> Any
X.dateTimeFromText(text) -> PythonQt.QtCore.QDateTime
Supplemental documentation: Qt 5 reference:
[virtual protected] QDateTime QDateTimeEdit::dateTimeFromText(const QString \&text) const
Returns an appropriate datetime for the given text.
This virtual function is used by the datetime edit whenever it needs to interpret text entered by the user as a value.
See also textFromDateTime() and validate().
Upstream PySide2 reference signatures (binding differences may apply):
dateTimeFromText(self, text: str) -> PySide2.QtCore.QDateTime
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#dateTimeFromText
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.destroyed; argument details are not documented.
displayFormat
instance-attribute
displayFormat: str
Qt 5 reference:
displayFormat : QString
This property holds the format used to display the time/date of the date time edit.
This format is described in QDateTime::toString() and QDateTime::fromString()
Example format strings (assuming that the date is 2nd of July 1969):
| Format | Result |
|---|---|
| dd.MM.yyyy | 02.07.1969 |
| MMM d yy | Jul 2 69 |
| MMMM d yy | July 2 69 |
Note that if you specify a two digit year, it will be interpreted to be in the century in which the date time edit was initialized. The default century is the 21st (2000-2099).
If you specify an invalid format the format will not be set.
Access functions:
| QString | displayFormat() const |
|---|---|
| void | setDisplayFormat(const QString \&format) |
See also QDateTime::toString() and displayedSections().
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#displayFormat
displayedSections
instance-attribute
displayedSections: Any
Qt 5 reference:
displayedSections : const Sections
This property holds the currently displayed fields of the date time edit.
Returns a bit set of the displayed sections for this format.
Access functions:
| QDateTimeEdit::Sections | displayedSections() const |
|---|---|
See also setDisplayFormat() and displayFormat().
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#displayedSections
editingFinished
editingFinished(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.editingFinished; argument details are not documented.
event
event(event: Any) -> bool
X.event(event) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QDateTimeEdit::event(QEvent *event)
Reimplements: QAbstractSpinBox::event(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, event: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#event
fixup
fixup(input: str) -> None
X.fixup(input)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDateTimeEdit::fixup(QString \&input) const
Reimplements: QAbstractSpinBox::fixup(QString \&input) const.
Upstream PySide2 reference signatures (binding differences may apply):
fixup(self, input: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#fixup
focusInEvent
focusInEvent(event: Any) -> None
X.focusInEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDateTimeEdit::focusInEvent(QFocusEvent *event)
Reimplements: QAbstractSpinBox::focusInEvent(QFocusEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
focusInEvent(self, event: PySide2.QtGui.QFocusEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#focusInEvent
focusNextPrevChild
focusNextPrevChild(next: bool) -> bool
X.focusNextPrevChild(next) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QDateTimeEdit::focusNextPrevChild(bool next)
Reimplements: QWidget::focusNextPrevChild(bool next).
Upstream PySide2 reference signatures (binding differences may apply):
focusNextPrevChild(self, next: bool) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#focusNextPrevChild
initStyleOption
initStyleOption(option: Any) -> None
X.initStyleOption(option)
Supplemental documentation: Qt 5 reference:
[protected] void QDateTimeEdit::initStyleOption(QStyleOptionSpinBox *option) const
Initialize option with the values from this QDataTimeEdit. This method is useful for subclasses when they need a QStyleOptionSpinBox, but don't want to fill in all the information themselves.
See also QStyleOption::initFrom().
Upstream PySide2 reference signatures (binding differences may apply):
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionSpinBox) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#initStyleOption
keyPressEvent
keyPressEvent(event: Any) -> None
X.keyPressEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDateTimeEdit::keyPressEvent(QKeyEvent *event)
Reimplements: QAbstractSpinBox::keyPressEvent(QKeyEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#keyPressEvent
maximumDate
instance-attribute
maximumDate: QDate
Qt 5 reference:
maximumDate : QDate
This property holds the maximum date of the date time edit.
Changing this property updates the date of the maximumDateTime property while preserving the maximumTime property. When setting this property, the minimumDate is adjusted, if necessary, to ensure that the range remains valid. When this happens, the minimumTime property is also adjusted if it is greater than the maximumTime property. Otherwise, changes to this property preserve the minimumDateTime property.
This property can only be set to a valid QDate object describing a date on which the current maximumTime property makes a valid QDateTime object. The latest date that setMaximumDate() accepts is the end of 9999 CE. This is the default for this property. This default can be restored with clearMaximumDateTime().
Access functions:
| QDate | maximumDate() const |
|---|---|
| void | setMaximumDate(const QDate \&max) |
| void | clearMaximumDate() |
See also minimumDate, maximumTime, maximumDateTime, setDateRange(), QDate::isValid(), and Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#maximumDate
maximumDateTime
instance-attribute
maximumDateTime: QDateTime
Qt 5 reference:
maximumDateTime : QDateTime
This property holds the maximum datetime of the date time edit.
Changing this property implicitly updates the maximumDate and maximumTime properties to the date and time parts of this property, respectively. When setting this property, the minimumDateTime is adjusted, if necessary, to ensure that the range remains valid. Otherwise, changing this property preserves the minimumDateTime property.
This property can only be set to a valid QDateTime value. The latest date-time that setMaximumDateTime() accepts is the end of 9999 CE. This is the default for this property. This default can be restored with clearMaximumDateTime().
This property was introduced in Qt 4.4.
Access functions:
| QDateTime | maximumDateTime() const |
|---|---|
| void | setMaximumDateTime(const QDateTime \&dt) |
| void | clearMaximumDateTime() |
See also minimumDateTime, maximumTime, maximumDate(), setDateTimeRange(), QDateTime::isValid(), and Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#maximumDateTime
maximumTime
instance-attribute
maximumTime: QTime
Qt 5 reference:
maximumTime : QTime
This property holds the maximum time of the date time edit.
Changing this property updates the time of the maximumDateTime property while preserving the minimumDate and maximumDate properties. If those date properties coincide, when setting this property, the minimumTime property is adjusted, if necessary, to ensure that the range remains valid. Otherwise, changing this property preserves the minimumDateTime property.
This property can be set to any valid QTime value. By default, this property contains a time of 23:59:59 and 999 milliseconds. This default can be restored with clearMaximumTime().
Access functions:
| QTime | maximumTime() const |
|---|---|
| void | setMaximumTime(const QTime \&max) |
| void | clearMaximumTime() |
See also minimumTime, maximumDate, maximumDateTime, setTimeRange(), QTime::isValid(), and Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#maximumTime
minimumDate
instance-attribute
minimumDate: QDate
Qt 5 reference:
minimumDate : QDate
This property holds the minimum date of the date time edit.
Changing this property updates the date of the minimumDateTime property while preserving the minimumTime property. When setting this property, the maximumDate is adjusted, if necessary, to ensure that the range remains valid. When this happens, the maximumTime property is also adjusted if it is less than the minimumTime property. Otherwise, changes to this property preserve the maximumDateTime property.
This property can only be set to a valid QDate object describing a date on which the current minimumTime property makes a valid QDateTime object. The earliest date that setMinimumDate() accepts is the start of 100 CE. The default for this property is September 14, 1752 CE. This default can be restored with clearMinimumDateTime().
Access functions:
| QDate | minimumDate() const |
|---|---|
| void | setMinimumDate(const QDate \&min) |
| void | clearMinimumDate() |
See also maximumDate, minimumTime, minimumDateTime, setDateRange(), QDate::isValid(), and Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#minimumDate
minimumDateTime
instance-attribute
minimumDateTime: QDateTime
Qt 5 reference:
minimumDateTime : QDateTime
This property holds the minimum datetime of the date time edit.
Changing this property implicitly updates the minimumDate and minimumTime properties to the date and time parts of this property, respectively. When setting this property, the maximumDateTime is adjusted, if necessary, to ensure that the range remains valid. Otherwise, changing this property preserves the minimumDateTime property.
This property can only be set to a valid QDateTime value. The earliest date-time that setMinimumDateTime() accepts is the start of 100 CE. The property's default is the start of September 14, 1752 CE. This default can be restored with clearMinimumDateTime().
This property was introduced in Qt 4.4.
Access functions:
| QDateTime | minimumDateTime() const |
|---|---|
| void | setMinimumDateTime(const QDateTime \&dt) |
| void | clearMinimumDateTime() |
See also maximumDateTime, minimumTime, minimumDate, setDateTimeRange(), QDateTime::isValid(), and Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#minimumDateTime
minimumTime
instance-attribute
minimumTime: QTime
Qt 5 reference:
minimumTime : QTime
This property holds the minimum time of the date time edit.
Changing this property updates the time of the minimumDateTime property while preserving the minimumDate and maximumDate properties. If those date properties coincide, when setting this property, the maximumTime property is adjusted, if necessary, to ensure that the range remains valid. Otherwise, changing this property preserves the maximumDateTime property.
This property can be set to any valid QTime value. By default, this property contains a time of 00:00:00 and 0 milliseconds. This default can be restored with clearMinimumTime().
Access functions:
| QTime | minimumTime() const |
|---|---|
| void | setMinimumTime(const QTime \&min) |
| void | clearMinimumTime() |
See also maximumTime, minimumDate, minimumDateTime, setTimeRange(), QTime::isValid(), and Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#minimumTime
mousePressEvent
mousePressEvent(event: Any) -> None
X.mousePressEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDateTimeEdit::mousePressEvent(QMouseEvent *event)
Reimplements: QAbstractSpinBox::mousePressEvent(QMouseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
mousePressEvent(self, event: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#mousePressEvent
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.objectNameChanged; argument details are not documented.
paintEvent
paintEvent(event: Any) -> None
X.paintEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDateTimeEdit::paintEvent(QPaintEvent *event)
Reimplements: QAbstractSpinBox::paintEvent(QPaintEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
paintEvent(self, event: PySide2.QtGui.QPaintEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#paintEvent
sectionAt
sectionAt(index: int) -> Any
X.sectionAt(index)
Supplemental documentation: Qt 5 reference:
QDateTimeEdit::Section QDateTimeEdit::sectionAt(int index) const
Returns the Section at index.
If the format is 'yyyy/MM/dd', sectionAt(0) returns YearSection, sectionAt(1) returns MonthSection, and sectionAt(2) returns YearSection,
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
sectionAt(self, index: int) -> PySide2.QtWidgets.QDateTimeEdit.Section
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#sectionAt
sectionCount
instance-attribute
sectionCount: int
Qt 5 reference:
sectionCount : const int
This property holds the number of sections displayed. If the format is 'yyyy/yy/yyyy', sectionCount returns 3
This property was introduced in Qt 4.3.
Access functions:
| int | sectionCount() const |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#sectionCount
sectionText
sectionText(section: Any) -> str
X.sectionText(section) -> str
Supplemental documentation: Qt 5 reference:
QString QDateTimeEdit::sectionText(QDateTimeEdit::Section section) const
Returns the text from the given section.
See also currentSection().
Upstream PySide2 reference signatures (binding differences may apply):
sectionText(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#sectionText
setCalendarPopup
setCalendarPopup(enable: bool) -> None
X.setCalendarPopup(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setCalendarPopup(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setCalendarPopup