QTimeEdit Class
The QTimeEdit class lets the user edit a time. More…
| Header | #include <QTimeEdit> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Widgets) |
| Module | Nt Widgets C++ Classes |
| Inherits | QDateTimeEdit |
List of all members, including inherited members
Public Functions
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
See QDateTimeEdit.
Member Function Documentation
QTimeEdit::QTimeEdit(QWidget *parent = nullptr)
Constructs a time edit with the given parent, at 00:00.
QTimeEdit::QTimeEdit(QTime time, QWidget *parent = nullptr)
Constructs a time edit with the given time and parent.
QTimeEdit::~QTimeEdit()
Destroys the time edit.