Obsolete Members for QQmlListProperty

Los siguientes miembros de la clase ` QQmlListProperty ` están obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.

Funciones públicas

(deprecated) QQmlListProperty(QObject *object, QList<T *> &list)

Documentación de las funciones de miembro

[implicit, deprecated] QQmlListProperty::QQmlListProperty(QObject *object, QList<T *> &list)

Esta función está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.

Constructor de conveniencia para crear un valor de `QQmlListProperty` a partir de un ` QList ` o ` list` ya existentes. Se deben proporcionar el ` object ` propietario de la lista y el propio ` list `, y deben mantenerse activos mientras se mantenga una referencia a ellos mediante un `QQmlListProperty`.

Este constructor sintetiza los métodos removeLast() y replace() introducidos en Qt 5.15, utilizando count(), at(), clear() y append(). Esto resulta lento. Si tienes intención de manipular la lista más allá de borrarla, debes proporcionar explícitamente estos métodos.

© 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.