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 .