QRangeModelAdapter::RowReference Struct
struct QRangeModelAdapter::RowReferenceRowReference is a reference wrapper around a row in a QRangeModel. More...
This struct is in technology preview and is subject to change.
This struct was introduced in Qt 6.11.
Public Types
Public Functions
| RowReference() | |
| RowReference(const QRangeModelAdapter<Range, Protocol, Model>::RowReference &other) | |
| RowReference(QRangeModelAdapter<Range, Protocol, Model>::RowReference &&other) | |
| ~RowReference() | |
| auto | at(int column) |
| QRangeModelAdapter<Range, Protocol, Model>::ColumnIterator | begin() |
| auto | children() |
| QRangeModelAdapter<Range, Protocol, Model>::ColumnIterator | end() |
| operator QRangeModelAdapter<Range, Protocol, Model>::ConstRowReference() const | |
| QRangeModelAdapter<Range, Protocol, Model>::RowReference & | operator=(QRangeModelAdapter<Range, Protocol, Model>::RowReference::row_type &&other) |
| QRangeModelAdapter<Range, Protocol, Model>::RowReference & | operator=(const QRangeModelAdapter<Range, Protocol, Model>::ConstRowReference &other) |
| QRangeModelAdapter<Range, Protocol, Model>::RowReference & | operator=(const QRangeModelAdapter<Range, Protocol, Model>::RowReference &other) |
| QRangeModelAdapter<Range, Protocol, Model>::RowReference & | operator=(const QRangeModelAdapter<Range, Protocol, Model>::RowReference::row_type &other) |
| auto | operator[](int column) |
Detailed Description
For ranges that are tables or trees, accessing a row of a QRangeModelAdapter using the non-const overloads of at() or subscript operator[], or by dereferencing a RowIterator, returns a RowReference for the specified row.
See also ConstRowReference and DataReference.
Member Type Documentation
[alias] RowReference::row_type
An alias for the type of the rows in the underlying range.
Member Function Documentation
[delete] RowReference::RowReference()
Default-constructs an instance of RowReference. This function is deleted.
[default] RowReference::RowReference(const QRangeModelAdapter<Range, Protocol, Model>::RowReference &other)
Copy-constructs an instance of RowReference.
[default] RowReference::RowReference(QRangeModelAdapter<Range, Protocol, Model>::RowReference &&other)
Move-constructs an instance of RowReference.
[default] RowReference::~RowReference()
Destroys the instance of RowReference.
Returns a reference wrapper to the item at column of this row.
QRangeModelAdapter<Range, Protocol, Model>::ColumnIterator RowReference::begin()
Returns a ColumnIterator pointing to the first column of this row.
template <typename I> requires if_tree<I> auto RowReference::children()
Returns a QRangeModelAdapter operating on the same range and model as this adapter, and with this row as the root index.
Constraints
Participates in overload resolution only if Range is a tree.
QRangeModelAdapter<Range, Protocol, Model>::ColumnIterator RowReference::end()
Returns a ColumnIterator pointing just after the last column of this row.
RowReference::operator QRangeModelAdapter<Range, Protocol, Model>::ConstRowReference() const
Returns a ConstRowReference referencing the same row as this.
QRangeModelAdapter<Range, Protocol, Model>::RowReference &RowReference::operator=(QRangeModelAdapter<Range, Protocol, Model>::RowReference::row_type &&other)
QRangeModelAdapter<Range, Protocol, Model>::RowReference &RowReference::operator=(const QRangeModelAdapter<Range, Protocol, Model>::RowReference::row_type &other)
Assigns the row other to the row referenced by this, emitting dataChanged for all items in the row.
If the model is a tree, and the referenced row has children, then those children are removed from the model. If the row referenced by other has children, then those children are inserted into the model.
QRangeModelAdapter<Range, Protocol, Model>::RowReference &RowReference::operator=(const QRangeModelAdapter<Range, Protocol, Model>::ConstRowReference &other)
QRangeModelAdapter<Range, Protocol, Model>::RowReference &RowReference::operator=(const QRangeModelAdapter<Range, Protocol, Model>::RowReference &other)
Assigns the row referenced by other to the row referenced by this, emitting dataChanged for all items in the row.
If the model is a tree, and the referenced row has children, then those children are removed from the model. If the row referenced by other has children, then those children are inserted into the model.
© 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.