QTimeEdit Class
La clase QTimeEdit proporciona un widget para editar tiempos basado en el widget QDateTimeEdit. Más...
| Cabecera: | #include <QTimeEdit> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets)target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Hereda: | QDateTimeEdit |
Funciones públicas
| QTimeEdit(QWidget *parent = nullptr) | |
| QTimeEdit(QTime time, QWidget *parent = nullptr) | |
| virtual | ~QTimeEdit() |
Señales
| void | userTimeChanged(QTime time) |
Descripción detallada

Muchas de las propiedades y funciones proporcionadas por QTimeEdit están implementadas en QDateTimeEdit. Estas son las propiedades relevantes de esta clase:
- time mantiene la hora mostrada por el widget.
- minimumTime define la hora mínima (más temprana) que puede ser establecida por el usuario.
- maximumTime define la hora máxima (más tardía) que puede establecer el usuario.
- displayFormat contiene una cadena que se utiliza para dar formato a la hora mostrada en el widget.
Véase también QDateEdit y QDateTimeEdit.
Documentación de las funciones miembro
[explicit] QTimeEdit::QTimeEdit(QWidget *parent = nullptr)
Construye un editor de tiempo vacío con un parent.
[explicit] QTimeEdit::QTimeEdit(QTime time, QWidget *parent = nullptr)
Construye un editor de tiempo vacío con parent. El tiempo se establece en time.
[virtual noexcept] QTimeEdit::~QTimeEdit()
Destructor.
© 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.