6.0.0-rc4Source

QTimeEdit Class

The QTimeEdit class lets the user edit a time. More…

Header#include <QTimeEdit>
CMaketarget_link_libraries(app PRIVATE Nt::Widgets)
ModuleNt Widgets C++ Classes
InheritsQDateTimeEdit

List of all members, including inherited members

Public Functions

QTimeEdit(QWidget *parent = nullptr)
QTimeEdit(QTime time, QWidget *parent = nullptr)
~QTimeEdit()

Detailed Description

A QTimeEdit is a QDateTimeEdit with the format "HH:mm":

auto *alarm = new QTimeEdit(QTime(7, 30), form);
alarm->setDisplayFormat("HH:mm:ss");

See also QDateEdit.

Differences from Qt

Member Function Documentation

[explicit] QTimeEdit::QTimeEdit(QWidget *parent = nullptr)

Constructs a time edit with the given parent, at 00:00.

[explicit] QTimeEdit::QTimeEdit(QTime time, QWidget *parent = nullptr)

Constructs a time edit with the given time and parent.

[override] QTimeEdit::~QTimeEdit()

Destroys the time edit.