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

Ausführliche Beschreibung

Ein „ QMetaSequence::Iterable::Iterator “ kann nur von einer „ QMetaSequence::Iterable “-Instanz erstellt werden und lässt sich ähnlich wie andere Iteratoren im STL-Stil verwenden.

Dokumentation der Mitgliedsfunktionen

int Iterator::operator*() const

Gibt das aktuelle Element zurück, konvertiert in ein „ QVariant::Reference “.

int Iterator::operator->() const

Gibt das aktuelle Element zurück, das in ein „ QVariant::Pointer “ konvertiert wurde.

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

Gibt den Element-Offset vom aktuellen Element aus zurück, gemessen in „ n “, umgerechnet in „ 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.