QTimeEdit Class Reference

[ QtGui module]

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

继承 QDateTimeEdit .

方法


详细描述

The QTimeEdit class provides a widget for editing times based on the QDateTimeEdit 小部件。

Many of the properties and functions provided by QTimeEdit are implemented in QDateTimeEdit 。 following properties are most relevant to users of this class:

Screenshot of a Windows XP style time editing widget A time editing widget shown in the Windows XP widget style .
Screenshot of a Macintosh style time editing widget A time editing widget shown in the Macintosh widget style .
Screenshot of a Plastique style time editing widget A time editing widget shown in the Plastique widget style .

方法文档编制

QTimeEdit.__init__ ( self , QWidget   parent  = None)

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

Constructs an empty time editor with a parent .

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

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

Constructs an empty time editor with a parent . The time is set to time .