QDateEdit Class

QDateEdit 继承自 QDateTimeEdit , 提供一个日期编辑widget. 更多...

头文件: #include <QDateEdit>
qmake: QT += widgets
基类: QDateTimeEdit

公有函数

QDateEdit(QWidget *parent = Q_NULLPTR)
QDateEdit(const QDate &date, QWidget *parent = Q_NULLPTR)
~QDateEdit()

其他继承的成员

详细描述

QDateEdit 继承自 QDateTimeEdit , 提供一个日期编辑widget.

QDateEdit 的多数函数和属性继承自 QDateTimeEdit. 它的相关属性如下:

Screenshot of a Windows Vista style date editing widgetA date editing widget shown in the Windows Vista widget style.
Screenshot of a Macintosh style date editing widgetA date editing widget shown in the Macintosh widget style.
Screenshot of a Fusion style date editing widgetA date editing widget shown in the Fusion widget style.

参见 QTimeEditQDateTimeEdit.

成员函数

QDateEdit::QDateEdit(QWidget *parent = Q_NULLPTR)

Constructs an empty date editor with a parent.

QDateEdit::QDateEdit(const QDate &date, QWidget *parent = Q_NULLPTR)

Constructs an empty date editor with a parent. The date is set to date.

QDateEdit::~QDateEdit()

Destructor.