PythonQt.QtGui.QDateTimeEdit · declarations 002
Back to PythonQt.QtGui.QDateTimeEdit
setCalendarWidget
setCalendarWidget(calendarWidget: Any) -> None
X.setCalendarWidget(calendarWidget)
Supplemental documentation: Qt 5 reference:
void QDateTimeEdit::setCalendarWidget(QCalendarWidget *calendarWidget)
Sets the given calendarWidget as the widget to be used for the calendar pop-up. The editor does not automatically take ownership of the calendar widget.
Note: calendarPopup must be set to true before setting the calendar widget.
This function was introduced in Qt 4.4.
See also calendarWidget() and calendarPopup.
Upstream PySide2 reference signatures (binding differences may apply):
setCalendarWidget(self, calendarWidget: PySide2.QtWidgets.QCalendarWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setCalendarWidget
setCurrentSection
setCurrentSection(section: Any) -> None
X.setCurrentSection(section)
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentSection(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setCurrentSection
setCurrentSectionIndex
setCurrentSectionIndex(index: int) -> None
X.setCurrentSectionIndex(index)
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentSectionIndex(self, index: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setCurrentSectionIndex
setDate
setDate(date: Any) -> None
X.setDate(date)
Upstream PySide2 reference signatures (binding differences may apply):
setDate(self, date: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setDate
setDateRange
setDateRange(min: Any, max: Any) -> None
X.setDateRange(min, max)
Supplemental documentation: Qt 5 reference:
void QDateTimeEdit::setDateRange(const QDate \&min, const QDate \&max)
Set the range of allowed dates for the date time edit.
This convenience function sets the minimumDate and maximumDate properties.
setDateRange(min, max);
is analogous to:
setMinimumDate(min);
setMaximumDate(max);
If either min or max is invalid, this function does nothing. This function preserves the minimumTime property. If max is less than min, the new maximumDateTime property shall be the new minimumDateTime property. If max is equal to min and the maximumTime property was less then the minimumTime property, the maximumTime property is set to the minimumTime property. Otherwise, this preserves the maximumTime property.
If the range is narrower then a time interval whose end it spans, for example a week that spans the end of a month, users can only edit the date to one in the later part of the range if keyboard-tracking is disabled.
See also minimumDate, maximumDate, setDateTimeRange(), QDate::isValid(), and Keyboard Tracking.
Upstream PySide2 reference signatures (binding differences may apply):
setDateRange(self, min: PySide2.QtCore.QDate, max: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setDateRange
setDateTime
setDateTime(dateTime: Any) -> None
X.setDateTime(dateTime)
Upstream PySide2 reference signatures (binding differences may apply):
setDateTime(self, dateTime: PySide2.QtCore.QDateTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setDateTime
setDateTimeRange
setDateTimeRange(min: Any, max: Any) -> None
X.setDateTimeRange(min, max)
Supplemental documentation: Qt 5 reference:
void QDateTimeEdit::setDateTimeRange(const QDateTime \&min, const QDateTime \&max)
Set the range of allowed date-times for the date time edit.
This convenience function sets the minimumDateTime and maximumDateTime properties.
setDateTimeRange(min, max);
is analogous to:
setMinimumDateTime(min);
setMaximumDateTime(max);
If either min or max is invalid, this function does nothing. If max is less than min, min is used also as max.
If the range is narrower then a time interval whose end it spans, for example a week that spans the end of a month, users can only edit the date-time to one in the later part of the range if keyboard-tracking is disabled.
This function was introduced in Qt 4.4.
See also minimumDateTime, maximumDateTime, setDateRange(), setTimeRange(), QDateTime::isValid(), and Keyboard Tracking.
Upstream PySide2 reference signatures (binding differences may apply):
setDateTimeRange(self, min: PySide2.QtCore.QDateTime, max: PySide2.QtCore.QDateTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setDateTimeRange
setDisplayFormat
setDisplayFormat(format: str) -> None
X.setDisplayFormat(format)
Upstream PySide2 reference signatures (binding differences may apply):
setDisplayFormat(self, format: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setDisplayFormat
setMaximumDate
setMaximumDate(max: Any) -> None
X.setMaximumDate(max)
Upstream PySide2 reference signatures (binding differences may apply):
setMaximumDate(self, max: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setMaximumDate
setMaximumDateTime
setMaximumDateTime(dt: Any) -> None
X.setMaximumDateTime(dt)
Upstream PySide2 reference signatures (binding differences may apply):
setMaximumDateTime(self, dt: PySide2.QtCore.QDateTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setMaximumDateTime
setMaximumTime
setMaximumTime(max: Any) -> None
X.setMaximumTime(max)
Upstream PySide2 reference signatures (binding differences may apply):
setMaximumTime(self, max: PySide2.QtCore.QTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setMaximumTime
setMinimumDate
setMinimumDate(min: Any) -> None
X.setMinimumDate(min)
Upstream PySide2 reference signatures (binding differences may apply):
setMinimumDate(self, min: PySide2.QtCore.QDate) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setMinimumDate
setMinimumDateTime
setMinimumDateTime(dt: Any) -> None
X.setMinimumDateTime(dt)
Upstream PySide2 reference signatures (binding differences may apply):
setMinimumDateTime(self, dt: PySide2.QtCore.QDateTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setMinimumDateTime
setMinimumTime
setMinimumTime(min: Any) -> None
X.setMinimumTime(min)
Upstream PySide2 reference signatures (binding differences may apply):
setMinimumTime(self, min: PySide2.QtCore.QTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setMinimumTime
setSelectedSection
setSelectedSection(section: Any) -> None
X.setSelectedSection(section)
Supplemental documentation: Qt 5 reference:
void QDateTimeEdit::setSelectedSection(QDateTimeEdit::Section section)
Selects section. If section doesn't exist in the currently displayed sections, this function does nothing. If section is NoSection, this function will unselect all text in the editor. Otherwise, this function will move the cursor and the current section to the selected section.
This function was introduced in Qt 4.2.
See also currentSection().
Upstream PySide2 reference signatures (binding differences may apply):
setSelectedSection(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setSelectedSection
setTime
setTime(time: Any) -> None
X.setTime(time)
Upstream PySide2 reference signatures (binding differences may apply):
setTime(self, time: PySide2.QtCore.QTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setTime
setTimeRange
setTimeRange(min: Any, max: Any) -> None
X.setTimeRange(min, max)
Supplemental documentation: Qt 5 reference:
void QDateTimeEdit::setTimeRange(const QTime \&min, const QTime \&max)
Set the range of allowed times for the date time edit.
This convenience function sets the minimumTime and maximumTime properties.
Note that these only constrain the date time edit's value on, respectively, the minimumDate and maximumDate. When these date properties do not coincide, times after max are allowed on dates before maximumDate and times before min are allowed on dates after minimumDate.
setTimeRange(min, max);
is analogous to:
setMinimumTime(min);
setMaximumTime(max);
If either min or max is invalid, this function does nothing. This function preserves the minimumDate and maximumDate properties. If those properties coincide and max is less than min, min is used as max.
If the range is narrower then a time interval whose end it spans, for example the interval from ten to an hour to ten past the same hour, users can only edit the time to one in the later part of the range if keyboard-tracking is disabled.
See also minimumTime, maximumTime, setDateTimeRange(), QTime::isValid(), and Keyboard Tracking.
Upstream PySide2 reference signatures (binding differences may apply):
setTimeRange(self, min: PySide2.QtCore.QTime, max: PySide2.QtCore.QTime) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setTimeRange
setTimeSpec
setTimeSpec(spec: Any) -> None
X.setTimeSpec(spec)
Upstream PySide2 reference signatures (binding differences may apply):
setTimeSpec(self, spec: PySide2.QtCore.Qt.TimeSpec) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#setTimeSpec
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QDateTimeEdit::sizeHint() const
Reimplements: QAbstractSpinBox::sizeHint() const.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#sizeHint
stepBy
stepBy(steps: int) -> None
X.stepBy(steps)
Supplemental documentation: Qt 5 reference:
[override virtual] void QDateTimeEdit::stepBy(int steps)
Reimplements: QAbstractSpinBox::stepBy(int steps).
Upstream PySide2 reference signatures (binding differences may apply):
stepBy(self, steps: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#stepBy
stepEnabled
stepEnabled() -> Any
X.stepEnabled()
Supplemental documentation: Qt 5 reference:
[override virtual protected] QAbstractSpinBox::StepEnabled QDateTimeEdit::stepEnabled() const
Reimplements: QAbstractSpinBox::stepEnabled() const.
Upstream PySide2 reference signatures (binding differences may apply):
stepEnabled(self) -> PySide2.QtWidgets.QAbstractSpinBox.StepEnabled
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#stepEnabled
textFromDateTime
textFromDateTime(dt: Any) -> str
X.textFromDateTime(dt) -> str
Supplemental documentation: Qt 5 reference:
[virtual protected] QString QDateTimeEdit::textFromDateTime(const QDateTime \&dateTime) const
This virtual function is used by the date time edit whenever it needs to display dateTime.
If you reimplement this, you may also need to reimplement validate().
See also dateTimeFromText() and validate().
Upstream PySide2 reference signatures (binding differences may apply):
textFromDateTime(self, dt: PySide2.QtCore.QDateTime) -> str
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#textFromDateTime
time
instance-attribute
time: QTime
Qt 5 reference:
time : QTime
This property holds the QTime that is set in the widget.
By default, this property contains a time of 00:00:00 and 0 milliseconds.
Access functions:
| QTime | time() const |
|---|---|
| void | setTime(const QTime \&time) |
Notifier signal:
| void | timeChanged(const QTime \&time) |
|---|---|
QTime QDateTimeEdit::time() const
Returns the time of the date time edit.
Note: Getter function for property time.
See also setTime().
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#time
timeChanged
timeChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.timeChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDateTimeEdit::timeChanged(const QTime \&time)
This signal is emitted whenever the time is changed. The new time is passed in time.
Note: Notifier signal for property time.
See also Keyboard Tracking.
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#timeChanged
timeSpec
instance-attribute
timeSpec: Any
Qt 5 reference:
timeSpec : Qt::TimeSpec
This property holds the current timespec used by the date time edit.
This property was introduced in Qt 4.4.
Access functions:
| Qt::TimeSpec | timeSpec() const |
|---|---|
| void | setTimeSpec(Qt::TimeSpec spec) |
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#timeSpec
validate
validate(input: str, pos: int) -> Any
X.validate(input, pos)
Supplemental documentation: Qt 5 reference:
[override virtual protected] QValidator::State QDateTimeEdit::validate(QString \&text, int \&pos) const
Reimplements: QAbstractSpinBox::validate(QString \&input, int \&pos) const.
Upstream PySide2 reference signatures (binding differences may apply):
validate(self, input: str, pos: int) -> PySide2.QtGui.QValidator.State
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#validate
wheelEvent
wheelEvent(event: Any) -> None
X.wheelEvent(event)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDateTimeEdit::wheelEvent(QWheelEvent *event)
Reimplements: QAbstractSpinBox::wheelEvent(QWheelEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
wheelEvent(self, event: PySide2.QtGui.QWheelEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdatetimeedit.html#wheelEvent
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDateTimeEdit.windowTitleChanged; argument details are not documented.