이 페이지에서

QMetaAssociation::Iterable::Iterator Class

class QMetaAssociation::Iterable::Iterator

QMetaAssociation::Iterable::Iterator 는 QVariant 에서 컨테이너를 반복 처리할 수 있게 해줍니다. 더 보기...

이 클래스는 Qt 6.11에서 도입되었습니다.

공개 함수

QVariant key() const
QVariant value() const
int operator*() const
int operator->() const

상세 설명

QMetaAssociation::Iterable::Iterator 는 QMetaAssociation::Iterable 인스턴스에 의해서만 생성될 수 있으며, 다른 STL 스타일의 반복자와 유사한 방식으로 사용할 수 있습니다.

QMetaAssociation::Iterable도 참조하십시오 .

멤버 함수 문서

QVariant Iterator::key() const

이 반복자가 가리키는 키를 반환합니다.

QVariant Iterator::value() const

이 반복자가 가리키는 매핑된 값을 반환합니다. 컨테이너가 매핑된 값을 제공하지 않는 경우(예: 세트), 무효한 QVariant::Reference 를 반환합니다.

int Iterator::operator*() const

현재 항목을 ` QVariant::Reference`로 변환하여 반환합니다. 결과로 반환된 ` QVariant::Reference `는 매핑된 값이 있으면 해당 값으로, 없으면 키 값으로 해결됩니다.

int Iterator::operator->() const

현재 항목을 ` QVariant::Pointer`으로 변환하여 반환합니다. 반환된 ` QVariant::Pointer `은 매핑된 값이 있으면 해당 값으로, 없으면 키 값으로 해결됩니다.

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