Qt Qml XmlListModel
使用XmlListModel 类型从XML数据创建只读模型。它可作为视图元素(如ListView、PathView或GridView)以及与其他模型数据交互的元素(如Repeater)的数据源。
注意:此 模型不支持 XPath 查询。它支持简单的斜杠分隔路径,并可选地为每个元素指定一个属性。
要使用本模块中的类型,请通过以下代码行导入该模块:
import QtQml.XmlListModelAPI 参考
许可证
Qt Qml XmlListModel 由The Qt Company 提供商业许可。此外,它还遵循GNU 较宽松通用公共许可证(第 3 版)或GNU 通用公共许可证(第 2 版)。更多详细信息请参阅Qt 许可。
© 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.