本页面内容

Qt Quick Controls - 活动日历

一个简单的活动日历。

显示月视图并带有事件标记的日历应用程序

“活动日历”示例是一个简单的应用程序,展示了如何使用DayOfWeekRow 、WeekNumberColumn 和MonthGrid 来创建日历。它使用内存中的 SQL 数据库向日历中填充活动。该示例采用Material 风格。

运行示例

您可以通过以下方式运行该示例:

示例项目 @ code.qt.io

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