Obsolete Members for QQmlListProperty
Los siguientes miembros de la clase QQmlListProperty son obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Desaconsejamos su uso en código nuevo.
Funciones públicas
(deprecated) | QQmlListProperty(QObject *object, QList<T *> &list) |
Documentación de funciones miembro
[default, deprecated] QQmlListProperty::QQmlListProperty(QObject *object, QList<T *> &list)
Esta función está obsoleta. Desaconsejamos su uso en código nuevo.
Constructor de conveniencia para hacer un valor QQmlListProperty a partir de un QList list existente. El object propietario de la lista y el propio list deben proporcionarse y mantenerse vivos mientras se mantenga un QQmlListProperty que haga referencia a ellos.
Este constructor sintetiza los métodos removeLast() y replace() introducidos en Qt 5.15, usando count(), at(), clear(), y append(). Esto es lento. Si pretende manipular la lista más allá de limpiarla, debería 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.