Calendar QML Type
日历命名空间。更多
Import Statement: | import QtQuick.Controls |
Inherits: |
详细说明
Calendar 单例提供各种日历相关实用程序。
日历相关类型在 Qt Quick Controls中的日历相关类型使用基于 0 的月份编号,就像 JavaScript Date 对象一样。不过,这与QDate 不同,后者的月份编号从 1 开始。
为避免混淆,您可以使用以下枚举值:
常量 | 描述 |
---|---|
Calendar.January | 一月 (0) |
Calendar.February | 二月 (1) |
Calendar.March | 三月 (2) |
Calendar.April | 四月 (3) |
Calendar.May | 五月 (4) |
Calendar.June | 六月 (5) |
Calendar.July | 七月 (6) |
Calendar.August | 八月 (7) |
Calendar.September | 九月 (8) |
Calendar.October | 十月 (9) |
Calendar.November | 十一月 (10) |
Calendar.December | 十二月 (11) |
另请参见 MonthGrid,DayOfWeekRow, 和WeekNumberColumn 。
© 2025 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.