7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qdatetime.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)
48 SecondSection = 0x0004,
49 MinuteSection = 0x0008,
52 MonthSection = 0x0200,
54 TimeSections_Mask = AmPmSection|MSecSection|SecondSection|MinuteSection|HourSection,
55 DateSections_Mask = DaySection|MonthSection|YearSection
76 void clearMinimumDateTime();
80 void clearMaximumDateTime();
85 QDate minimumDate()
const;
87 void clearMinimumDate();
89 QDate maximumDate()
const;
91 void clearMaximumDate();
95 QTime minimumTime()
const;
97 void clearMinimumTime();
99 QTime maximumTime()
const;
101 void clearMaximumTime();
105 Sections displayedSections()
const;
106 Section currentSection()
const;
107 Section sectionAt(
int index)
const;
108 void setCurrentSection(Section section);
110 int currentSectionIndex()
const;
111 void setCurrentSectionIndex(
int index);
116 int sectionCount()
const;
118 void setSelectedSection(Section section);
120 QString sectionText(Section section)
const;
125 bool calendarPopup()
const;
126 void setCalendarPopup(
bool enable);
133 void clear()
override;
134 void stepBy(
int steps)
override;
149#if QT_CONFIG(wheelevent)
150 void wheelEvent(QWheelEvent *
event)
override;
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
void focusInEvent(QFocusEvent *event) override
\reimp
void paintEvent(QPaintEvent *event) override
\reimp
void mousePressEvent(QMouseEvent *event) override
\reimp
virtual void fixup(QString &input) const
This virtual function is called by the QAbstractSpinBox if the input is not validated to QValidator::...
virtual void stepBy(int steps)
Virtual function that is called whenever the user triggers a step.
virtual void initStyleOption(QStyleOptionSpinBox *option) const
Initialize option with the values from this QSpinBox.
QSize sizeHint() const override
\reimp
virtual StepEnabled stepEnabled() const
Virtual function that determines whether stepping up and down is legal at any given time.
virtual void clear()
Clears the lineedit of all text but prefix and suffix.
void keyPressEvent(QKeyEvent *event) override
\reimp
virtual QValidator::State validate(QString &input, int &pos) const
This virtual function is called by the QAbstractSpinBox to determine whether input is valid.
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.
\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)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent