Auf dieser Seite

QMetaSequence::Iterable::Iterator Class

class QMetaSequence::Iterable::Iterator

QMetaSequence::Iterable::Iterator ermöglicht die Iteration über einen Container in einem QVariant. Mehr...

Diese Klasse wurde in Qt 6.11 eingeführt.

Öffentliche Funktionen

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

Detaillierte Beschreibung

Ein QMetaSequence::Iterable::Iterator kann nur von einer QMetaSequence::Iterable Instanz erstellt werden und kann ähnlich wie andere stl-style Iteratoren verwendet werden.

Dokumentation der Memberfunktionen

int Iterator::operator*() const

Gibt das aktuelle Element zurück, umgewandelt in ein QVariant::Reference.

int Iterator::operator->() const

Gibt das aktuelle Element zurück, umgewandelt in ein QVariant::Pointer.

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

Gibt das Element zurück, das um n gegenüber dem aktuellen Element versetzt ist, umgewandelt in ein 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.