En esta página

Calendar QML Type

Un espacio de nombres de calendario. Más...

Import Statement: import QtQuick.Controls
Inherits:

QtObject

Descripción detallada

El singleton Calendar proporciona varias utilidades relacionadas con el calendario.

Los tipos relacionados con el calendario en Qt Quick Controls utilizan números de mes basados en 0, como los objetos Date de JavaScript. Sin embargo, esto difiere de QDate, donde los meses se numeran empezando por 1.

Para evitar confusiones, puede utilizar los siguientes valores de enumeración:

ConstanteDescripción
Calendar.JanuaryEnero (0)
Calendar.FebruaryFebrero (1)
Calendar.MarchMarzo (2)
Calendar.AprilAbril (3)
Calendar.MayMayo (4)
Calendar.JuneJunio (5)
Calendar.JulyJulio (6)
Calendar.AugustAgosto (7)
Calendar.Septemberseptiembre (8)
Calendar.Octoberoctubre (9)
Calendar.Novembernoviembre (10)
Calendar.Decemberdiciembre (11)

Véase también MonthGrid, DayOfWeekRow, y WeekNumberColumn.

© 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.