Calendar QML Type
Un espace de noms de calendrier. En savoir plus...
| Import Statement: | import QtQuick.Controls |
| Inherits: |
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 :
| Constante | Description |
|---|---|
Calendar.January | Janvier (0) |
Calendar.February | Février (1) |
Calendar.March | Mars (2) |
Calendar.April | Avril (3) |
Calendar.May | Mai (4) |
Calendar.June | Juin (5) |
Calendar.July | Juillet (6) |
Calendar.August | Août (7) |
Calendar.September | Septembre (8) |
Calendar.October | Octobre (9) |
Calendar.November | Novembre (10) |
Calendar.December | Dé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.