QCalendar::SystemId Class
class QCalendar::SystemId该类在 Qt 6.2 中引入。
公共函数
| bool | isValid() const |
详细说明
这是一个用于标识自定义日历实现的不透明类型。该类型的值唯一支持的来源是后端的calendarId() 方法。 若该类型的值其isValid()返回false,则该值不代表已成功注册的后端。该类型值的唯一有效使用者是QCalendar 构造函数,该构造函数仅在传入的ID有效时,才会生成有效的QCalendar 实例。
另请参阅 QCalendar 和QCalendar::System 。
成员函数文档
[constexpr noexcept] bool SystemId::isValid() const
如果这是一个有效的日历实现标识符,则返回 `true `;否则返回 `false `。
另请参阅 QCalendar 。
© 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.