6#include <QtQml/private/qqmlproperty_p.h>
30 if (!prop.
object)
return rv;
90#if QT_DEPRECATED_SINCE(6, 4)
163 if (!
data || !
data->isQList())
return;
183 if (
o.d)
o.d->addref();
345 if (!
canAt())
return nullptr;
The QQmlEngine class provides an environment for instantiating QML components.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
RemoveLastFunction removeLast
static QQmlListReference init(const QQmlListProperty< QObject > &, QMetaType)
const QMetaObject * elementType()
QPointer< QObject > object
QQmlListProperty< QObject > property
QQmlListReferencePrivate()
The QQmlListReference class allows the manipulation of QQmlListProperty properties.
QQmlListReference()
Constructs an invalid instance.
bool canAppend() const
Returns true if the list property can be appended to, otherwise false.
qsizetype count() const
Returns the number of objects in the list, or 0 if the operation failed.
bool canRemoveLast() const
Returns true if the last item can be removed from the list property, otherwise false.
bool replace(qsizetype, QObject *) const
Replaces the item at index in the list with object.
friend class QQmlListReferencePrivate
bool append(QObject *) const
Appends object to the list.
bool isValid() const
Returns true if the instance refers to a valid list property, otherwise false.
bool canClear() const
Returns true if the list property can be cleared, otherwise false.
QObject * object() const
Returns the list property's object.
bool removeLast() const
Removes the last item in the list.
const QMetaObject * listElementType() const
Returns the QMetaObject for the elements stored in the list property, or \nullptr if the reference is...
bool isManipulable() const
bool canReplace() const
Returns true if items in the list property can be replaced, otherwise false.
QObject * at(qsizetype) const
Returns the list element at index, or 0 if the operation failed.
bool canAt() const
Returns true if the list property can queried by index, otherwise false.
bool clear() const
Clears the list.
QQmlListReference & operator=(const QQmlListReference &)
bool canCount() const
Returns true if the list property can be queried for its element count, otherwise false.
const QQmlPropertyData * property(const K &key, QObject *object, const QQmlRefPointer< QQmlContextData > &context) const
QMetaType metaType() const
const void * constData() const
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static QT_BEGIN_NAMESPACE bool isObjectCompatible(QObject *object, QQmlListReferencePrivate *d)
QLatin1StringView QLatin1String