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 .