이 페이지에서

QRangeModelAdapter::RowReferenceBase Struct

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

RowReferenceBase는 RowReference 및 ConstRowReference 에 대한 공통 API를 제공합니다. 더 보기...

이 구조체는 기술 미리보기 단계에 있으며 변경될 수 있습니다.

이 구조체는 Qt 6.11에서 도입되었습니다.

공개 함수

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

보호된 함수

상세 설명

테이블이나 트리 형태의 모델의 경우, ` at()`을 사용하거나, 인덱스 ` operator[]`을 사용하거나, ` RowIterator`의 참조를 해제하여 어댑터의 행에 접근하면, 지정된 행에 대한 ` RowReference ` 또는 ` ConstRowReference `가 반환됩니다.

DataReference도 참조하십시오 .

멤버 함수 문서

[protected default] RowReferenceBase::~RowReferenceBase()

RowReferenceBase 의 인스턴스를 삭제합니다.

auto RowReferenceBase::at(int column) const

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

이 행의 column 에 있는 항목에 대한 참조 래퍼를 반환합니다.

어댑터가 처리하는 데이터 구조에 따라, 반환되는 값은 const 참조 래퍼, const 객체에 대한 포인터 또는 ` QVariant`입니다.

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

이 행의 첫 번째 열을 가리키는 ` ConstColumnIterator `를 반환합니다.

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

이 행의 첫 번째 열을 가리키는 ` ConstColumnIterator `를 반환합니다.

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

이 행의 마지막 열 바로 다음 위치를 가리키는 ` ConstColumnIterator `를 반환합니다.

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

이 어댑터와 동일한 범위 및 모델을 사용하며, 이 행을 루트 인덱스로 하는 ` QRangeModelAdapter ` 객체를 반환합니다.

제약 조건

Range 가 트리인 경우에만 오버로드 해결에 참여합니다.

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

이 행의 마지막 열 바로 다음 위치를 가리키는 ` ConstColumnIterator `를 반환합니다.

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

참조된 행에 하나 이상의 자식 행이 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

제약 조건

Range 가 트리인 경우에만 오버로드 해결에 참여합니다.

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

모델의 열 수를 반환합니다.

이 함수는 모델의 모든 행에 대해 동일한 값을 반환합니다.

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