QML 動的ビュー順序付けチュートリアル

このチュートリアルでは、ソースモデルを変更することなく、ListView の項目の並び順を変更する方法を示します。このチュートリアルでは、ドラッグ&ドロップを使用してビュー内の個々の項目を再配置する方法と、モデルデータを使用してビュー内のすべての項目を動的にソートする方法を示します。

チュートリアルの章

  1. 単純な ListView と Delegate
  2. ビュー項目のドラッグ
  3. ドラッグしたアイテムの移動
  4. アイテムのソート

このチュートリアルのコードはすべて Qt のexamples/quick/tutorials/dynamicview ディレクトリにあります。

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