本页内容

QRangeModelAdapter::ConstRowIterator Struct

struct QRangeModelAdapter::ConstRowIterator

提供一个基于模型行数据的 STL 风格常量迭代器。更多信息...

该结构体处于技术预览阶段,内容可能会有变动。

该结构体首次出现在 Qt 6.11 中。

公共函数

ConstRowIterator(const QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &other)
ConstRowIterator(QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &&other)
~ConstRowIterator()
QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &operator=(QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &&other)
QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &operator=(const QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &other)

详细描述

该迭代器遵循std::random_access_iterator 模型。如果模型是一个列表,则解引用迭代器将返回模型中被指向的项。

对于表格和树,解引用迭代器将返回指向该行的ConstRowReference 。

成员函数文档

[default] ConstRowIterator::ConstRowIterator(const QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &other)

复制并构造一个ConstRowIterator 的实例。

[default] ConstRowIterator::ConstRowIterator(QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &&other)

通过Move构造一个ConstRowIterator 的实例。

[default] ConstRowIterator::~ConstRowIterator()

销毁ConstRowIterator 的实例。

[default] QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &ConstRowIterator::operator=(QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &&other)

将other 通过Move操作赋值给此ConstRowIterator 实例。

[default] QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &ConstRowIterator::operator=(const QRangeModelAdapter<Range, Protocol, Model>::ConstRowIterator &other)

将other 复制并赋值给此ConstRowIterator 实例。

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