QCalendar::SystemId Class

class QCalendar::SystemId

该类在 Qt 6.2 中引入。

公共函数

bool isValid() const

详细说明

这是一种不透明类型,用于标识自定义日历实现。该类型值的唯一支持来源是后台的calendarId() 方法。如果isValid() 为 false,则该类型的值不能标识已成功注册的后端。该类型值的唯一有效消费者是QCalendar 构造函数,只有当传递给它的 ID 有效时,该构造函数才会产生一个有效的QCalendar 实例。

另请参阅 QCalendarQCalendar::System

成员函数文档

[constexpr noexcept] bool SystemId::isValid() const

如果这是一个有效的日历实现标识符,则返回true ,否则返回false

另请参阅 QCalendar

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