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

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