6.0.0-rc4Source

QCalendar::YearMonthDay Struct

The YearMonthDay class holds the year, month and day of a date in a calendar. More…

Header#include <QCalendar>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes
Nested inQCalendar

List of all members, including inherited members

Public Functions

YearMonthDay()
YearMonthDay(int y, int m = 1, int d = 1)
boolisValid() const

Public Variables

intyear
intmonth
intday

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.