QTimeEdit Class
A classe QTimeEdit fornece um widget para edição de horários baseado no widget QDateTimeEdit. Mais...
| Cabeçalho: | #include <QTimeEdit> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Herdado de: | QDateTimeEdit |
Funções públicas
| QTimeEdit(QWidget *parent = nullptr) | |
| QTimeEdit(QTime time, QWidget *parent = nullptr) | |
| virtual | ~QTimeEdit() |
Descrição detalhada

Muitas das propriedades e funções fornecidas pelo QTimeEdit são implementadas n QDateTimeEdit. Estas são as propriedades relevantes desta classe:
- time armazena a hora exibida pelo widget.
- minimumTime define a hora mínima (mais antiga) que pode ser definida pelo usuário.
- maximumTime define a hora máxima (mais tardia) que pode ser definida pelo usuário.
- displayFormat contém uma string usada para formatar a hora exibida no widget.
Veja também QDateEdit e QDateTimeEdit.
Documentação das funções de membro
[explicit] QTimeEdit::QTimeEdit(QWidget *parent = nullptr)
Cria um editor de tempo vazio com um ` parent`.
[explicit] QTimeEdit::QTimeEdit(QTime time, QWidget *parent = nullptr)
Cria um editor de hora vazio com um objeto ` parent`. A hora é definida como ` time`.
[virtual noexcept] QTimeEdit::~QTimeEdit()
Destrutor.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.