In questa pagina

QRangeModelAdapter::RowReferenceBase Struct

template <typename Reference, typename Adapter> struct QRangeModelAdapter::RowReferenceBase

RowReferenceBase fornisce un'API comune per RowReference e ConstRowReference. Altro...

Questa struttura è in anteprima tecnologica ed è soggetta a modifiche.

Questa struttura è stata introdotta in Qt 6.11.

Funzioni pubbliche

auto at(int column) const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator begin() const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator cbegin() const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator cend() const
auto children() const
QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator end() const
bool hasChildren() const
QRangeModelAdapter<Range, Protocol, Model>::RowReferenceBase<Reference, Adapter>::size_type size() const
auto operator[](int column) const

Funzioni protette

Descrizione dettagliata

Per i modelli che sono tabelle o alberi, l'accesso a una riga di un adattatore utilizzando ` at()` o l'indice ` operator[]`, oppure il dereferenziazione di ` RowIterator`, restituisce un ` RowReference ` o un ` ConstRowReference ` alla riga specificata.

Vedi anche DataReference.

Documentazione sulle funzioni membro

[protected default] RowReferenceBase::~RowReferenceBase()

Elimina l'istanza di RowReferenceBase.

auto RowReferenceBase::at(int column) const

auto RowReferenceBase::operator[](int column) const

Restituisce un wrapper di riferimento all'elemento all'indirizzo column di questa riga.

A seconda della struttura dei dati su cui opera l'adattatore, il valore restituito è un wrapper di riferimento const, un puntatore a un oggetto const o un QVariant.

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::begin() const

Restituisce un oggetto ` ConstColumnIterator ` che punta alla prima colonna di questa riga.

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::cbegin() const

Restituisce un oggetto ` ConstColumnIterator ` che punta alla prima colonna di questa riga.

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::cend() const

Restituisce un oggetto ` ConstColumnIterator ` che punta immediatamente dopo l'ultima colonna di questa riga.

template <typename I> requires if_tree<I> auto RowReferenceBase::children() const

Restituisce un oggetto ` QRangeModelAdapter ` che opera sullo stesso intervallo e modello di questo adattatore, con questa riga come indice radice.

Vincoli

Partecipa alla risoluzione dei sovraccarichi solo se ` Range ` è un albero.

QRangeModelAdapter<Range, Protocol, Model>::ConstColumnIterator RowReferenceBase::end() const

Restituisce un oggetto ` ConstColumnIterator ` che punta immediatamente dopo l'ultima colonna di questa riga.

template <typename I> requires if_tree<I> bool RowReferenceBase::hasChildren() const

Restituisce true se la riga a cui si fa riferimento contiene una o più righe figlie, altrimenti false.

Vincoli

Partecipa alla risoluzione dei sovraccarichi solo se ` Range ` è un albero.

QRangeModelAdapter<Range, Protocol, Model>::RowReferenceBase<Reference, Adapter>::size_type RowReferenceBase::size() const

Restituisce il numero di colonne presenti nel modello.

Restituisce lo stesso valore per tutte le righe del modello.

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