QMetaSequence::Iterable::Iterator Class
class QMetaSequence::Iterable::IteratorQMetaSequence::Iterable::Iterator 允许迭代QVariant 中的容器 ... 更多...
该类在 Qt 6.11 中引入。
公共函数
| int | operator*() const |
| int | operator->() const |
| int | operator[](qsizetype n) const |
详细说明
QMetaSequence::Iterable::Iterator 只能由QMetaSequence::Iterable 实例创建,其使用方式与其他 stl 风格迭代器类似。
成员函数文档
int Iterator::operator*() const
返回当前项目,并转换为QVariant::Reference 。
int Iterator::operator->() const
返回当前项目,并转换为QVariant::Pointer 。
int Iterator::operator[](qsizetype n) const
通过n 返回与当前项目偏移的项目,并转换为QVariant::Reference 。
© 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.