Nesta página

QMetaSequence::Iterable::Iterator Class

class QMetaSequence::Iterable::Iterator

QMetaSequence::Iterable::Iterator permite a iteração sobre um contêiner em um ` QVariant`. Mais...

Essa classe foi introduzida no Qt 6.11.

Funções públicas

int operator*() const
int operator->() const
int operator[](qsizetype n) const

Descrição detalhada

Um ` QMetaSequence::Iterable::Iterator ` só pode ser criado por uma instância de ` QMetaSequence::Iterable ` e pode ser usado de maneira semelhante a outros iteradores no estilo STL.

Documentação das funções de membro

int Iterator::operator*() const

Retorna o item atual, convertido para um ` QVariant::Reference`.

int Iterator::operator->() const

Retorna o item atual, convertido para um ` QVariant::Pointer`.

int Iterator::operator[](qsizetype n) const

Retorna o item localizado a uma distância de n do item atual, convertido para um QVariant::Reference.

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