On this page

QRangeModelAdapter::ConstRowReference Struct

struct QRangeModelAdapter::ConstRowReference

ConstRowReference is a reference wrapper around a const row in a QRangeModel. More...

This struct is in technology preview and is subject to change.

This struct was introduced in Qt 6.11.

QRangeModelAdapter::ConstRowReference Comparisons

CategoryComparable Types
equalityQRangeModelAdapter::ConstRowReference
equalityrow_type.

Public Functions

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

Detailed Description

For ranges that are tables or trees, accessing a row of a QRangeModelAdapter using the const overloads of at() or subscript operator[], or by dereferencing a ConstRowIterator, returns a ConstRowReference for the specified row.

Two row references are equal if they refer to the same row, or if the rows they refer to are equal. If row_type doesn't provide an equality operator, then two row references are only equal if they refer to the same row. A row reference is equal to a row_type if the row it refers to is equal to it.

RowReference and ConstRowReference can also be compared with each other, and with the row references of other adapters if the rows of both adapters have the same type, with the same semantics.

Row references are not ordered. To compare the positions of rows, compare their iterators. Row references can't be swapped; see the Iterator API.

See also RowReference and DataReference.

Member Function Documentation

[default] ConstRowReference::ConstRowReference()

Default-constructs an instance of ConstRowReference.

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

Copy-constructs an instance of ConstRowReference.

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

Move-constructs an instance of ConstRowReference.

[default] ConstRowReference::~ConstRowReference()

Destroys the instance of ConstRowReference.

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

Move-assigns other to this ConstRowReference instance.

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

Copy-assigns other to this ConstRowReference instance.

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