QDateEdit Class Reference
[QtGui module]
The QDateEdit class provides a widget for editing dates based on the QDateTimeEdit widget. More…
Methods
__init__ (self, QWidget parent = None)
__init__ (self, QDate date, QWidget parent = None)
Detailed Description
该QDateEdit类提供的基础上,进行编辑日期的小部件QDateTimeEdit小工具。
许多由QDateEdit提供的性能和功能都在实施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.
| | A date editing widget shown in the Windows XP widget style. |
|
| A date editing widget shown in the Macintosh widget style. |
|
| A date editing widget shown in the Plastique widget style. |
Method Documentation
QDateEdit.__init__ (self, QWidget parent = None)
该parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。
构造一个空的日期编辑器与parent。
QDateEdit.__init__ (self, QDate date, QWidget parent = None)
该parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。
构造一个空的日期编辑器与parent。日期设置为date。