QTimeEdit 类

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

头: #include <QTimeEdit>
继承: QDateTimeEdit

公共函数

QTimeEdit (QWidget * parent = 0)
QTimeEdit (const QTime & time , QWidget * parent = 0)

额外继承成员

详细描述

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

  • time holds the date displayed by the widget.
  • minimumTime 定义可以由用户设置的最小 (最早) 时间。
  • maximumTime 定义可以由用户设置的最大 (最新) 时间。
  • displayFormat 包含用于格式化 Widget 显示时间的字符串。
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 .

另请参阅 QDateEdit and QDateTimeEdit .

成员函数文档编制

QTimeEdit:: QTimeEdit ( QWidget * parent = 0)

构造空时间编辑器采用 parent .

QTimeEdit:: QTimeEdit (const QTime & time , QWidget * parent = 0)

构造空时间编辑器采用 parent 。时间被设为 time .