QDateEdit Class
The QDateEdit class lets the user edit a date. More…
| Header | #include <QDateEdit> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Widgets) |
| Module | Nt Widgets C++ Classes |
| Inherits | QDateTimeEdit |
List of all members, including inherited members
Public Functions
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
See QDateTimeEdit.
Member Function Documentation
QDateEdit::QDateEdit(QWidget *parent = nullptr)
Constructs a date edit with the given parent, at 2000-01-01.
QDateEdit::QDateEdit(QDate date, QWidget *parent = nullptr)
Constructs a date edit with the given date and parent.
QDateEdit::~QDateEdit()
Destroys the date edit.