このページでは

Qt XmlListModel

XmlListModel 型を使用して、XML データから読み取り専用のモデルを作成します。これは、ビュー要素(ListView、PathView、GridViewなど)や、モデルデータと相互作用する他の要素(Repeaterなど)のデータソースとして使用することができます。

注: このモデルは XPath クエリをサポートしていません。単純なスラッシュで区切られたパスと、オプションとして、各要素に対して1つの属性をサポートします。

このモジュールの型を使用するには、以下の行でモジュールをインポートしてください:

import QtQml.XmlListModel

APIリファレンス

ライセンス

Qt Qml XmlListModel は、The Qt Companyの商用ライセンスで利用可能です。また、GNU Lesser General Public License, version 3 またはGNU General Public License, version 2 の下でも利用可能です。詳細はQt Licensingを参照してください。

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