4#include <QtCore/qassociativeiterable.h>
5#include <QtCore/qvariant.h>
7#include <QtCore/private/qiterable_p.h>
236 if (mappedMetaType == QMetaType::fromType<QVariant>()) {
QVariant operator*() const
Returns the current item, converted to a QVariant.
QVariantConstPointer operator->() const
Returns the current item, converted to a QVariantConstPointer.
QVariant value() const
Returns the mapped value this iterator points to, or an invalid QVariant if there is no mapped value.
QVariant key() const
Returns the key this iterator points to.
QTaggedIterator< QAssociativeConstIterator, void > const_iterator
bool containsKey(const QVariant &key)
Returns true if the container has an entry with the given key, or false otherwise.
void setValue(const QVariant &key, const QVariant &mapped)
Sets the mapped value associated with key to mapped, if possible.
const_iterator constEnd() const
void insertKey(const QVariant &key)
Inserts a new entry with the given key, or resets the mapped value of any existing entry with the giv...
QTaggedIterator< QAssociativeIterator, void > iterator
iterator mutableFind(const QVariant &key)
Retrieves an iterator pointing to the element at the given key, or the end of the container if that k...
const_iterator find(const QVariant &key) const
Retrieves a const_iterator pointing to the element at the given key, or the end of the container if t...
void removeKey(const QVariant &key)
Removes the entry with the given key from the container.
QVariant value(const QVariant &key) const
Retrieves the mapped value at the given key, or a default-constructed QVariant of the mapped type,...
QVariantRef< QAssociativeIterator > operator*() const
Returns the current item, converted to a QVariantRef.
QVariantPointer< QAssociativeIterator > operator->() const
Returns the current item, converted to a QVariantPointer.
QVariant key() const
Returns the key this iterator points to.
QVariantRef< QAssociativeIterator > value() const
Returns the mapped value this iterator points to.
const void * constIterator() const
Returns a const pointer to the internal native iterator.
Container metaContainer() const
const void * constIterable() const
QMetaAssociation metaContainer() const
QTaggedIterator is a template class that wraps an iterator and exposes standard iterator traits.
Emulated const pointer to QVariant based on a pointer.
QVariantPointer is a template class that emulates a pointer to QVariant based on a pointer.
The QVariantRef acts as a non-const reference to a QVariant.
const void * coerce(const QVariant &value, const QMetaType &type)
const void * convert(const QVariant &value, const QMetaType &type)
static QVariant retrieveElement(QMetaType type, Callback callback)
Combined button and popup list for selecting options.
The QConstIterator allows iteration over a container in a QVariant.
The QIterator is a template class that allows iteration over a container in a QVariant.