Nesta página

Calendar QML Type

Um namespace de calendário. Mais...

Import Statement: import QtQuick.Controls
Inherits:

QtObject

Descrição detalhada

O singleton Calendar fornece utilitários diversos relacionados ao calendário.

Os tipos relacionados a calendários nos controles dQt Quick usam números de mês com base em 0, assim como os objetos Date do JavaScript. No entanto, isso difere do QDate, onde os meses são numerados a partir de 1.

Para evitar confusão, você pode usar os seguintes valores de enumeração:

ConstanteDescrição
Calendar.JanuaryJaneiro (0)
Calendar.FebruaryFevereiro (1)
Calendar.MarchMarço (2)
Calendar.AprilAbril (3)
Calendar.MayMaio (4)
Calendar.JuneJunho (5)
Calendar.JulyJulho (6)
Calendar.AugustAgosto (7)
Calendar.SeptemberSetembro (8)
Calendar.OctoberOutubro (9)
Calendar.NovemberNovembro (10)
Calendar.DecemberDezembro (11)

Veja também MonthGrid, DayOfWeekRow e 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.