Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtWidgets »

Classe « QDateTimeEdit »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QAbstractSpinBox
                    QDateTimeEdit

Définition

class QDateTimeEdit(QAbstractSpinBox):

Description [extrait de QDateTimeEdit.__doc__]

QDateTimeEdit(self, d: PySide2.QtCore.QDate, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)
QDateTimeEdit(self, dt: PySide2.QtCore.QDateTime, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)
QDateTimeEdit(self, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)
QDateTimeEdit(self, t: PySide2.QtCore.QTime, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)
QDateTimeEdit(self, val: typing.Any, parserType: type, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AdaptiveDecimalStepTypePySide2.QtWidgets.QAbstractSpinBox.StepType.AdaptiveDecimalStepType
AmPmSectionPySide2.QtWidgets.QDateTimeEdit.Section.AmPmSection
CorrectToNearestValuePySide2.QtWidgets.QAbstractSpinBox.CorrectionMode.CorrectToNearestValue
CorrectToPreviousValuePySide2.QtWidgets.QAbstractSpinBox.CorrectionMode.CorrectToPreviousValue
DateSections_MaskPySide2.QtWidgets.QDateTimeEdit.Section.DateSections_Mask
DaySectionPySide2.QtWidgets.QDateTimeEdit.Section.DaySection
DefaultStepTypePySide2.QtWidgets.QAbstractSpinBox.StepType.DefaultStepType
DrawChildrenPySide2.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide2.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
HourSectionPySide2.QtWidgets.QDateTimeEdit.Section.HourSection
IgnoreMaskPySide2.QtWidgets.QWidget.RenderFlag.IgnoreMask
MinuteSectionPySide2.QtWidgets.QDateTimeEdit.Section.MinuteSection
MonthSectionPySide2.QtWidgets.QDateTimeEdit.Section.MonthSection
MSecSectionPySide2.QtWidgets.QDateTimeEdit.Section.MSecSection
NoButtonsPySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols.NoButtons
NoSectionPySide2.QtWidgets.QDateTimeEdit.Section.NoSection
PdmDepthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
PlusMinusPySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols.PlusMinus
SecondSectionPySide2.QtWidgets.QDateTimeEdit.Section.SecondSection
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe359d2680>
StepDownEnabledPySide2.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepDownEnabled
StepNonePySide2.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepNone
StepUpEnabledPySide2.QtWidgets.QAbstractSpinBox.StepEnabledFlag.StepUpEnabled
TimeSections_MaskPySide2.QtWidgets.QDateTimeEdit.Section.TimeSections_Mask
UpDownArrowsPySide2.QtWidgets.QAbstractSpinBox.ButtonSymbols.UpDownArrows
YearSectionPySide2.QtWidgets.QDateTimeEdit.Section.YearSection

Attributs statiques hérités de la classe QPaintDevice

painters

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
calendar(self) -> PySide2.QtCore.QCalendar calendar(self) -> PySide2.QtCore.QCalendar [extrait de calendar.__doc__]
calendarPopup(self) -> bool calendarPopup(self) -> bool [extrait de calendarPopup.__doc__]
calendarWidget(self) -> PySide2.QtWidgets.QCalendarWidget calendarWidget(self) -> PySide2.QtWidgets.QCalendarWidget [extrait de calendarWidget.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
clearMaximumDate(self) clearMaximumDate(self) [extrait de clearMaximumDate.__doc__]
clearMaximumDateTime(self) clearMaximumDateTime(self) [extrait de clearMaximumDateTime.__doc__]
clearMaximumTime(self) clearMaximumTime(self) [extrait de clearMaximumTime.__doc__]
clearMinimumDate(self) clearMinimumDate(self) [extrait de clearMinimumDate.__doc__]
clearMinimumDateTime(self) clearMinimumDateTime(self) [extrait de clearMinimumDateTime.__doc__]
clearMinimumTime(self) clearMinimumTime(self) [extrait de clearMinimumTime.__doc__]
currentSection(self) -> PySide2.QtWidgets.QDateTimeEdit.Section currentSection(self) -> PySide2.QtWidgets.QDateTimeEdit.Section [extrait de currentSection.__doc__]
currentSectionIndex(self) -> int currentSectionIndex(self) -> int [extrait de currentSectionIndex.__doc__]
customContextMenuRequested
date(self) -> PySide2.QtCore.QDate date(self) -> PySide2.QtCore.QDate [extrait de date.__doc__]
dateChanged
dateTime(self) -> PySide2.QtCore.QDateTime dateTime(self) -> PySide2.QtCore.QDateTime [extrait de dateTime.__doc__]
dateTimeChanged
dateTimeFromText(self, text: str) -> PySide2.QtCore.QDateTime dateTimeFromText(self, text: str) -> PySide2.QtCore.QDateTime [extrait de dateTimeFromText.__doc__]
destroyed
displayedSections(self) -> PySide2.QtWidgets.QDateTimeEdit.Sections displayedSections(self) -> PySide2.QtWidgets.QDateTimeEdit.Sections [extrait de displayedSections.__doc__]
displayFormat(self) -> str displayFormat(self) -> str [extrait de displayFormat.__doc__]
editingFinished
event(self, event: PySide2.QtCore.QEvent) -> bool event(self, event: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__]
fixup(self, input: str) fixup(self, input: str) [extrait de fixup.__doc__]
focusInEvent(self, event: PySide2.QtGui.QFocusEvent) focusInEvent(self, event: PySide2.QtGui.QFocusEvent) [extrait de focusInEvent.__doc__]
focusNextPrevChild(self, next: bool) -> bool focusNextPrevChild(self, next: bool) -> bool [extrait de focusNextPrevChild.__doc__]
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionSpinBox) initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionSpinBox) [extrait de initStyleOption.__doc__]
keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) [extrait de keyPressEvent.__doc__]
maximumDate(self) -> PySide2.QtCore.QDate maximumDate(self) -> PySide2.QtCore.QDate [extrait de maximumDate.__doc__]
maximumDateTime(self) -> PySide2.QtCore.QDateTime maximumDateTime(self) -> PySide2.QtCore.QDateTime [extrait de maximumDateTime.__doc__]
maximumTime(self) -> PySide2.QtCore.QTime maximumTime(self) -> PySide2.QtCore.QTime [extrait de maximumTime.__doc__]
minimumDate(self) -> PySide2.QtCore.QDate minimumDate(self) -> PySide2.QtCore.QDate [extrait de minimumDate.__doc__]
minimumDateTime(self) -> PySide2.QtCore.QDateTime minimumDateTime(self) -> PySide2.QtCore.QDateTime [extrait de minimumDateTime.__doc__]
minimumTime(self) -> PySide2.QtCore.QTime minimumTime(self) -> PySide2.QtCore.QTime [extrait de minimumTime.__doc__]
mousePressEvent(self, event: PySide2.QtGui.QMouseEvent) mousePressEvent(self, event: PySide2.QtGui.QMouseEvent) [extrait de mousePressEvent.__doc__]
objectNameChanged
paintEvent(self, event: PySide2.QtGui.QPaintEvent) paintEvent(self, event: PySide2.QtGui.QPaintEvent) [extrait de paintEvent.__doc__]
Section
sectionAt(self, index: int) -> PySide2.QtWidgets.QDateTimeEdit.Section sectionAt(self, index: int) -> PySide2.QtWidgets.QDateTimeEdit.Section [extrait de sectionAt.__doc__]
sectionCount(self) -> int sectionCount(self) -> int [extrait de sectionCount.__doc__]
Sections
sectionText(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) -> str sectionText(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) -> str [extrait de sectionText.__doc__]
setCalendar(self, calendar: PySide2.QtCore.QCalendar) setCalendar(self, calendar: PySide2.QtCore.QCalendar) [extrait de setCalendar.__doc__]
setCalendarPopup(self, enable: bool) setCalendarPopup(self, enable: bool) [extrait de setCalendarPopup.__doc__]
setCalendarWidget(self, calendarWidget: PySide2.QtWidgets.QCalendarWidget) setCalendarWidget(self, calendarWidget: PySide2.QtWidgets.QCalendarWidget) [extrait de setCalendarWidget.__doc__]
setCurrentSection(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) setCurrentSection(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) [extrait de setCurrentSection.__doc__]
setCurrentSectionIndex(self, index: int) setCurrentSectionIndex(self, index: int) [extrait de setCurrentSectionIndex.__doc__]
setDate(self, date: PySide2.QtCore.QDate) setDate(self, date: PySide2.QtCore.QDate) [extrait de setDate.__doc__]
setDateRange(self, min: PySide2.QtCore.QDate, max: PySide2.QtCore.QDate) setDateRange(self, min: PySide2.QtCore.QDate, max: PySide2.QtCore.QDate) [extrait de setDateRange.__doc__]
setDateTime(self, dateTime: PySide2.QtCore.QDateTime) setDateTime(self, dateTime: PySide2.QtCore.QDateTime) [extrait de setDateTime.__doc__]
setDateTimeRange(self, min: PySide2.QtCore.QDateTime, max: PySide2.QtCore.QDateTime) setDateTimeRange(self, min: PySide2.QtCore.QDateTime, max: PySide2.QtCore.QDateTime) [extrait de setDateTimeRange.__doc__]
setDisplayFormat(self, format: str) setDisplayFormat(self, format: str) [extrait de setDisplayFormat.__doc__]
setMaximumDate(self, max: PySide2.QtCore.QDate) setMaximumDate(self, max: PySide2.QtCore.QDate) [extrait de setMaximumDate.__doc__]
setMaximumDateTime(self, dt: PySide2.QtCore.QDateTime) setMaximumDateTime(self, dt: PySide2.QtCore.QDateTime) [extrait de setMaximumDateTime.__doc__]
setMaximumTime(self, max: PySide2.QtCore.QTime) setMaximumTime(self, max: PySide2.QtCore.QTime) [extrait de setMaximumTime.__doc__]
setMinimumDate(self, min: PySide2.QtCore.QDate) setMinimumDate(self, min: PySide2.QtCore.QDate) [extrait de setMinimumDate.__doc__]
setMinimumDateTime(self, dt: PySide2.QtCore.QDateTime) setMinimumDateTime(self, dt: PySide2.QtCore.QDateTime) [extrait de setMinimumDateTime.__doc__]
setMinimumTime(self, min: PySide2.QtCore.QTime) setMinimumTime(self, min: PySide2.QtCore.QTime) [extrait de setMinimumTime.__doc__]
setSelectedSection(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) setSelectedSection(self, section: PySide2.QtWidgets.QDateTimeEdit.Section) [extrait de setSelectedSection.__doc__]
setTime(self, time: PySide2.QtCore.QTime) setTime(self, time: PySide2.QtCore.QTime) [extrait de setTime.__doc__]
setTimeRange(self, min: PySide2.QtCore.QTime, max: PySide2.QtCore.QTime) setTimeRange(self, min: PySide2.QtCore.QTime, max: PySide2.QtCore.QTime) [extrait de setTimeRange.__doc__]
setTimeSpec(self, spec: PySide2.QtCore.Qt.TimeSpec) setTimeSpec(self, spec: PySide2.QtCore.Qt.TimeSpec) [extrait de setTimeSpec.__doc__]
sizeHint(self) -> PySide2.QtCore.QSize sizeHint(self) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
stepBy(self, steps: int) stepBy(self, steps: int) [extrait de stepBy.__doc__]
stepEnabled(self) -> PySide2.QtWidgets.QAbstractSpinBox.StepEnabled stepEnabled(self) -> PySide2.QtWidgets.QAbstractSpinBox.StepEnabled [extrait de stepEnabled.__doc__]
textFromDateTime(self, dt: PySide2.QtCore.QDateTime) -> str textFromDateTime(self, dt: PySide2.QtCore.QDateTime) -> str [extrait de textFromDateTime.__doc__]
time(self) -> PySide2.QtCore.QTime time(self) -> PySide2.QtCore.QTime [extrait de time.__doc__]
timeChanged
timeSpec(self) -> PySide2.QtCore.Qt.TimeSpec timeSpec(self) -> PySide2.QtCore.Qt.TimeSpec [extrait de timeSpec.__doc__]
validate(self, input: str, pos: int) -> PySide2.QtGui.QValidator.State validate(self, input: str, pos: int) -> PySide2.QtGui.QValidator.State [extrait de validate.__doc__]
wheelEvent(self, event: PySide2.QtGui.QWheelEvent) wheelEvent(self, event: PySide2.QtGui.QWheelEvent) [extrait de wheelEvent.__doc__]
windowIconChanged
windowIconTextChanged
windowTitleChanged

Méthodes héritées de la classe QAbstractSpinBox

__init_subclass__, __subclasshook__, alignment, ButtonSymbols, buttonSymbols, changeEvent, closeEvent, contextMenuEvent, CorrectionMode, correctionMode, focusOutEvent, hasAcceptableInput, hasFrame, hideEvent, inputMethodQuery, interpretText, isAccelerated, isGroupSeparatorShown, isReadOnly, keyboardTracking, keyReleaseEvent, lineEdit, minimumSizeHint, mouseMoveEvent, mouseReleaseEvent, resizeEvent, selectAll, setAccelerated, setAlignment, setButtonSymbols, setCorrectionMode, setFrame, setGroupSeparatorShown, setKeyboardTracking, setLineEdit, setReadOnly, setSpecialValueText, setWrapping, showEvent, specialValueText, stepDown, StepEnabled, StepEnabledFlag, StepType, stepUp, text, timerEvent, wrapping

Méthodes héritées de la classe QWidget

__init_subclass__, __repr__, __subclasshook__, acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, changeEvent, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuEvent, contextMenuPolicy, create, createWindowContainer, createWinId, cursor, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, find, focusNextChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, hideEvent, initPainter, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyReleaseEvent, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mouseReleaseEvent, move, moveEvent, nativeEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, previousInFocusChain, raise_, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, RenderFlag, RenderFlags, repaint, resize, resizeEvent, restoreGeometry, saveGeometry, screen, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, sharedPainter, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y

Méthodes héritées de la classe QPaintDevice

__init_subclass__, __subclasshook__, colorCount, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, devType, height, heightMM, initPainter, logicalDpiX, logicalDpiY, metric, PaintDeviceMetric, paintEngine, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, width, widthMM

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__