[QtGui module]

该QTimeEdit类提供了基于编辑时间窗口小部件QDateTimeEdit小工具。More…

继承QDateTimeEdit

Methods

  • __init__ (self, QWidget parent = None)
  • __init__ (self, QTime time, QWidget parent = None)

Detailed Description

该QTimeEdit类提供了基于编辑时间窗口小部件QDateTimeEdit小工具。

许多由QTimeEdit提供的性能和功能都在实施QDateTimeEdit。下列属性是最相关与这个类的用户:

  • time holds the date displayed by the widget.
  • minimumTime defines the minimum (earliest) time that can be set by the user.
  • maximumTime defines the maximum (latest) time that can be set by the user.
  • displayFormat contains a string that is used to format the time displayed in the widget.

| QTimeEdit Class Reference - 图1 | A time editing widget shown in the Windows XP widget style. |
| QTimeEdit Class Reference - 图2 | A time editing widget shown in the Macintosh widget style. |
| QTimeEdit Class Reference - 图3 | A time editing widget shown in the Plastique widget style. |


Method Documentation

  1. QTimeEdit.__init__ (self, QWidget parent = None)

parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。

构造一个空的时间编辑器parent

  1. QTimeEdit.__init__ (self, QTime time, QWidget parent = None)

parent的说法,如果不是没有,原因self通过Qt的,而不是PyQt的拥有。

构造一个空的时间编辑器parent。的时间设定为time