Obsolete Members for QQmlListReference
The following members of class QQmlListReference are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(deprecated) | QQmlListReference(const QVariant &variant, QQmlEngine *engine) |
(deprecated) | QQmlListReference(QObject *object, const char *property, QQmlEngine *engine) |
Member Function Documentation
[since 6.1]
QQmlListReference::QQmlListReference(const QVariant &variant, QQmlEngine *engine)
This function is deprecated. We strongly advise against using it in new code.
Use the constructors without QQmlEngine argument instead.
Constructs a QQmlListReference from a QVariant variant containing a QQmlListProperty. If variant does not contain a list property, an invalid QQmlListReference is created. If the object owning the list property is destroyed after the reference is constructed, it will automatically become invalid. That is, it is safe to hold QQmlListReference instances even after the object is deleted.
The engine is unused.
This function was introduced in Qt 6.1.
QQmlListReference::QQmlListReference(QObject *object, const char *property, QQmlEngine *engine)
This function is deprecated. We strongly advise against using it in new code.
Use the constructors without QQmlEngine argument instead.
Constructs a QQmlListReference for object's property. If property is not a list property, an invalid QQmlListReference is created. If object is destroyed after the reference is constructed, it will automatically become invalid. That is, it is safe to hold QQmlListReference instances even after object is deleted.
The engine is unused.
© 2024 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.