6.0.0-rc4Source

QDateEdit Class

The QDateEdit class lets the user edit a date. More…

Header#include <QDateEdit>
CMaketarget_link_libraries(app PRIVATE Nt::Widgets)
ModuleNt Widgets C++ Classes
InheritsQDateTimeEdit

List of all members, including inherited members

Public Functions

QDateEdit(QWidget *parent = nullptr)
QDateEdit(QDate date, QWidget *parent = nullptr)
~QDateEdit()

Detailed Description

A QDateEdit is a QDateTimeEdit with the format "yyyy-MM-dd":

auto *birthday = new QDateEdit(QDate(1990, 1, 1), form);
birthday->setCalendarPopup(true);

See also QTimeEdit and QCalendarWidget.

Differences from Qt

Member Function Documentation

[explicit] QDateEdit::QDateEdit(QWidget *parent = nullptr)

Constructs a date edit with the given parent, at 2000-01-01.

[explicit] QDateEdit::QDateEdit(QDate date, QWidget *parent = nullptr)

Constructs a date edit with the given date and parent.

[override] QDateEdit::~QDateEdit()

Destroys the date edit.