QTimeEdit Class

QTimeEdit 继承自 QDateTimeEdit, 提供一个时间编辑widget. 更多...

头文件: #include <QTimeEdit>
qmake: QT += widgets
基类: QDateTimeEdit

公有函数

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

其他继承的成员

详细描述

QTimeEdit 继承自 QDateTimeEdit, 提供一个时间编辑widget.

QTimeEdit 的多数函数和属性继承自 QDateTimeEdit. 它的相关属性如下:

Screenshot of a Windows Vista style time editing widgetA time editing widget shown in the Windows Vista widget style.
Screenshot of a Macintosh style time editing widgetA time editing widget shown in the Macintosh widget style.
Screenshot of a Fusion style time editing widgetA time editing widget shown in the Fusion widget style.

参见 QDateEdit and QDateTimeEdit.

成员函数

QTimeEdit::QTimeEdit(QWidget *parent = Q_NULLPTR)

Constructs an empty time editor with a parent.

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

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

QTimeEdit::~QTimeEdit()

Destructor.