QRangeModelAdapter::RowReference Struct | Qt Core | Qt 6.11.2
Description: RowReference is a reference wrapper around a row in a QRangeModel.

- Qt 6.11
- Qt Core
- C++ Classes
- RowReference
- Qt 6.11.2 Reference Documentation

# QRangeModelAdapter::RowReference Struct

struct QRangeModelAdapter::RowReference

RowReference is a reference wrapper around a row in a QRangeModel. More...

This struct is under development and is subject to change.

This struct was introduced in Qt 6.11.

- List of all members, including inherited members

## Public Types

| row_type

## Public Functions

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

### auto RowReference::at(int column)

### auto RowReference::operator[](int column)

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, QRangeModelAdapter<Range, Protocol, Model>::if_tree<I> = true> 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=(const QRangeModelAdapter<Range, Protocol, Model>::RowReference &other)

### QRangeModelAdapter<Range, Protocol, Model>::RowReference &RowReference::operator=(const QRangeModelAdapter<Range, Protocol, Model>::ConstRowReference &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.

### QRangeModelAdapter<Range, Protocol, Model>::RowReference &RowReference::operator=(const QRangeModelAdapter<Range, Protocol, Model>::RowReference::row_type &other)

### QRangeModelAdapter<Range, Protocol, Model>::RowReference &RowReference::operator=(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.