Obsolete Members for QQmlListReference
Los siguientes miembros de la clase ` QQmlListReference ` están obsoletos. Se proporcionan para garantizar que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.
Funciones públicas
(since 6.1, deprecated) | QQmlListReference(const QVariant &variant, QQmlEngine *engine) |
(deprecated) | QQmlListReference(QObject *object, const char *property, QQmlEngine *engine) |
Documentación de las funciones de miembro
[since 6.1, deprecated] QQmlListReference::QQmlListReference(const QVariant &variant, QQmlEngine *engine)
Esta función está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.
En su lugar, utiliza los constructores sin el argumento « QQmlEngine ».
Crea un objeto `QQmlListReference` a partir de un ` QVariant ` ` variant ` que contenga una ` QQmlListProperty`. Si ` variant ` no contiene una propiedad de lista, se creará un objeto `QQmlListReference` no válido. Si el objeto propietario de la propiedad de lista se destruye después de que se haya creado la referencia, esta dejará de ser válida automáticamente. Es decir, es seguro conservar instancias de `QQmlListReference` incluso después de que el objeto haya sido eliminado.
La función « engine » no se utiliza.
Esta función se introdujo en Qt 6.1.
[deprecated] QQmlListReference::QQmlListReference(QObject *object, const char *property, QQmlEngine *engine)
Esta función está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.
En su lugar, utiliza los constructores sin el argumento « QQmlEngine ».
Crea una instancia de `QQmlListReference` para ` property` de ` object`. Si ` property ` no es una propiedad de lista, se creará una instancia de `QQmlListReference` no válida. Si ` object ` se destruye después de crear la referencia, esta dejará de ser válida automáticamente. Es decir, es seguro conservar instancias de `QQmlListReference` incluso después de que se haya eliminado ` object `.
La engine no se utiliza.
© 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.