QDateEdit Class Reference

[ QtGui module]

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

继承 QDateTimeEdit .

方法


详细描述

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

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 .

方法文档编制

QDateEdit.__init__ ( self , QWidget   parent  = None)

parent argument, if not None, causes self to be owned by Qt instead of PyQt.

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

QDateEdit.__init__ ( self , QDate   date , QWidget   parent  = None)

parent argument, if not None, causes self to be owned by Qt instead of PyQt.

构造空日期编辑器采用 parent . The date is set to date .