En esta página

QMetaAssociation::Iterable::Iterator Class

class QMetaAssociation::Iterable::Iterator

El QMetaAssociation::Iterable::Iterator permite la iteración sobre un contenedor en un QVariant. Más...

Esta clase se introdujo en Qt 6.11.

Funciones Públicas

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

Descripción detallada

Un QMetaAssociation::Iterable::Iterator sólo puede ser creado por una instancia de QMetaAssociation::Iterable, y puede ser utilizado de forma similar a otros iteradores de estilo stl.

Véase también QMetaAssociation::Iterable.

Documentación de las funciones de los miembros

QVariant Iterator::key() const

Devuelve la clave a la que apunta este iterador.

QVariant Iterator::value() const

Devuelve el valor asignado al que apunta este iterador. Si el contenedor no proporciona un valor asignado (por ejemplo, un conjunto), devuelve un QVariant::Reference no válido.

int Iterator::operator*() const

Devuelve el elemento actual, convertido a un QVariant::Reference. El QVariant::Reference resultante resuelve al valor mapeado si hay uno, o al valor clave si no.

int Iterator::operator->() const

Devuelve el elemento actual, convertido a un QVariant::Pointer. El QVariant::Pointer resultante resuelve al valor mapeado si hay uno, o al valor clave si no.

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