内容表

上一话题

QDataWidgetMapper

下一话题

QDateTimeEdit

QDateEdit

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

Inheritance diagram of PySide2.QtWidgets.QDateEdit

详细描述

../../_images/windows-dateedit.png

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.

class QDateEdit ( [ parent=None ] )

QDateEdit(date[, parent=None])

param date

QDate

param parent

QWidget

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

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

PySide2.QtWidgets.QDateEdit. userDateChanged ( date )
参数

date QDate