En esta página

Qt Qml XmlListModel

Utiliza el tipo « XmlListModel » para crear un modelo de solo lectura a partir de datos XML. Se puede utilizar como fuente de datos para elementos de vista (como «ListView», «PathView» o «GridView») y otros elementos que interactúan con los datos del modelo (como «Repeater»).

Nota: Este modelo no admite consultas XPath. Admite rutas sencillas separadas por barras y, opcionalmente, un atributo por cada elemento.

Para utilizar los tipos de este módulo, impórtalo con la siguiente línea:

import QtQml.XmlListModel

Referencia de la API

Licencias

Qt Qml XmlListModel está disponible bajo licencias comerciales de The Qt Company. Además, está disponible bajo la Licencia Pública General Reducida de GNU, versión 3, o la Licencia Pública General de GNU, versión 2. Consulta Licencias de Qt para obtener más detalles.

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