QCalendar::YearMonthDay Struct
The YearMonthDay class holds the year, month and day of a date in a calendar. More…
| Header | #include <QCalendar> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
| Nested in | QCalendar |
List of all members, including inherited members
Public Functions
| YearMonthDay() | |
| YearMonthDay(int y, int m = 1, int d = 1) | |
| bool | isValid() const |
Public Variables
Detailed Description
Differences from Qt
None.
Member Function Documentation
QCalendar::YearMonthDay::YearMonthDay()
Constructs an invalid YearMonthDay.
QCalendar::YearMonthDay::YearMonthDay(int y, int m = 1, int d = 1)
Constructs a YearMonthDay for year y, month m and day d.
bool QCalendar::YearMonthDay::isValid() const
Returns true if none of the fields is Unspecified; otherwise returns false. It does not check that the date exists.
Member Variable Documentation
int QCalendar::YearMonthDay::day
The day of the month, from 1.
int QCalendar::YearMonthDay::month
The month, from 1.
int QCalendar::YearMonthDay::year
The year.