7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qtimezone.h>
9#include <QtCore/qcalendar.h>
10#include <QtCore/qvariant.h>
11#include <QtWidgets/qabstractspinbox.h>
18class QStyleOptionSpinBox;
29 RESET clearMaximumDateTime)
31 RESET clearMinimumDateTime)
37 Q_PROPERTY(Sections displayedSections READ displayedSections)
39 Q_PROPERTY(
bool calendarPopup READ calendarPopup WRITE setCalendarPopup)
40 Q_PROPERTY(
int currentSectionIndex READ currentSectionIndex WRITE setCurrentSectionIndex)
42#if QT_DEPRECATED_SINCE(6, 10)
51 SecondSection = 0x0004,
52 MinuteSection = 0x0008,
55 MonthSection = 0x0200,
57 TimeSections_Mask = AmPmSection|MSecSection|SecondSection|MinuteSection|HourSection,
58 DateSections_Mask = DaySection|MonthSection|YearSection
79 void clearMinimumDateTime();
83 void clearMaximumDateTime();
88 QDate minimumDate()
const;
90 void clearMinimumDate();
92 QDate maximumDate()
const;
94 void clearMaximumDate();
98 QTime minimumTime()
const;
100 void clearMinimumTime();
102 QTime maximumTime()
const;
104 void clearMaximumTime();
108 Sections displayedSections()
const;
109 Section currentSection()
const;
110 Section sectionAt(
int index)
const;
111 void setCurrentSection(Section section);
113 int currentSectionIndex()
const;
114 void setCurrentSectionIndex(
int index);
119 int sectionCount()
const;
121 void setSelectedSection(Section section);
123 QString sectionText(Section section)
const;
128 bool calendarPopup()
const;
129 void setCalendarPopup(
bool enable);
131#if QT_DEPRECATED_SINCE(6, 10)
133 Qt::TimeSpec timeSpec() const;
135 void setTimeSpec(
Qt::TimeSpec spec);
140 QSize sizeHint()
const override;
142 void clear()
override;
143 void stepBy(
int steps)
override;
158#if QT_CONFIG(wheelevent)
159 void wheelEvent(QWheelEvent *
event)
override;
162 bool focusNextPrevChild(
bool next)
override;
168 StepEnabled stepEnabled()
const override;
171 void initStyleOption(QStyleOptionSpinBox *
option)
const override;
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
The QCalendar class describes calendar systems.
The QDateEdit class provides a widget for editing dates based on the QDateTimeEdit widget.
void userDateChanged(QDate date)
This signal only exists to fully implement the date Q_PROPERTY on the class.
The QDateTimeEdit class provides a widget for editing dates and times.
void dateTimeChanged(const QDateTime &dateTime)
This signal is emitted whenever the date or time is changed.
Section
\value NoSection \value AmPmSection \value MSecSection \value SecondSection \value MinuteSection \val...
void dateChanged(QDate date)
This signal is emitted whenever the date is changed.
void timeChanged(QTime time)
This signal is emitted whenever the time is changed.
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
The QFocusEvent class contains event parameters for widget focus events.
The QKeyEvent class describes a key event.
The QPaintEvent class contains event parameters for paint events.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTimeEdit class provides a widget for editing times based on the QDateTimeEdit widget.
void userTimeChanged(QTime time)
This signal only exists to fully implement the time Q_PROPERTY on the class.
\inmodule QtCore \reentrant
State
This enum type defines the states in which a validated string can exist.
Combined button and popup list for selecting options.
static void setDateTime(QDateTimeData &d, QDate date, QTime time)
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLint GLsizei GLsizei GLenum format
GLenum GLenum GLenum input
#define QT_REQUIRE_CONFIG(feature)
#define QT_DEPRECATED_VERSION_X_6_10(text)