QDateEdit 类

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

头: #include <QDateEdit>
继承: QDateTimeEdit

公共函数

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

额外继承成员

详细描述

The 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 . The following properties are most relevant to users of this class:

  • 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.
Screenshot of a Windows XP style date editing widget A date editing widget shown in the Windows XP widget style .
Screenshot of a Macintosh style date editing widget A date editing widget shown in the Macintosh widget style .
Screenshot of a Plastique style date editing widget A date editing widget shown in the Plastique widget style .

另请参阅 QTimeEdit and QDateTimeEdit .

成员函数文档编制

QDateEdit:: QDateEdit ( QWidget * parent = 0)

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

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

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