QTimeEdit 類

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

頭: #include <QTimeEdit>
qmake: QT += widgets
繼承: QDateTimeEdit

公共函數

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

額外繼承成員

詳細描述

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 。這些是此類的相關特性:

  • time 保持由 Widget 顯示的時間。
  • minimumTime 定義可以由用戶設置的最小 (最早) 時間。
  • maximumTime 定義可以由用戶設置的最大 (最新) 時間。
  • displayFormat 包含用於格式化 Widget 顯示時間的字符串。

另請參閱 QDateEdit and QDateTimeEdit .

成員函數文檔編製

QTimeEdit:: QTimeEdit ( QWidget * parent = Q_NULLPTR)

構造空時間編輯器采用 parent .

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

構造空時間編輯器采用 parent 。時間被設為 time .

QTimeEdit:: ~QTimeEdit ()

析構函數。