Sur cette page

Calendar QML Type

Un espace de noms de calendrier. En savoir plus...

Import Statement: import QtQuick.Controls
Inherits:

QtObject

Description détaillée

Le singleton Calendar fournit divers utilitaires liés au calendrier.

Les types liés au calendrier dans Qt Quick Controls utilisent une numérotation des mois à partir de 0, à l'instar des objets Date de JavaScript. Cela diffère toutefois de QDate, où les mois sont numérotés à partir de 1.

Pour éviter toute confusion, vous pouvez utiliser les valeurs d'énumération suivantes :

ConstanteDescription
Calendar.JanuaryJanvier (0)
Calendar.FebruaryFévrier (1)
Calendar.MarchMars (2)
Calendar.AprilAvril (3)
Calendar.MayMai (4)
Calendar.JuneJuin (5)
Calendar.JulyJuillet (6)
Calendar.AugustAoût (7)
Calendar.SeptemberSeptembre (8)
Calendar.OctoberOctobre (9)
Calendar.NovemberNovembre (10)
Calendar.DecemberDécembre (11)

Voir également MonthGrid, DayOfWeekRow et 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.