QDateEdit 类

QDateEdit class provides a widget for editing dates based on the QDateTimeEdit 小部件。 更多...

头: #include <QDateEdit>
qmake: QT += widgets
继承: QDateTimeEdit

公共函数

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

额外继承成员

详细描述

QDateEdit class provides a widget for editing dates based on the QDateTimeEdit 小部件。

Many of the properties and functions provided by QDateEdit are implemented in QDateTimeEdit 。这些是此类的相关特性:

  • date holds the date displayed by the widget.
  • minimumDate defines the minimum (earliest) date that can be set by the user.
  • maximumDate defines the maximum (latest) date that can be set by the user.
  • displayFormat contains a string that is used to format the date displayed in the widget.

另请参阅 QTimeEdit and QDateTimeEdit .

成员函数文档编制

QDateEdit:: QDateEdit ( QWidget * parent = Q_NULLPTR)

构造空的日期编辑器采用 parent .

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

构造空的日期编辑器采用 parent 。日期设置为 date .

QDateEdit:: ~QDateEdit ()

析构函数。