Tutorial sull'ordinamento dinamico delle viste in QML
Questo tutorial mostra come è possibile riordinare gli elementi in una vista " ListView " senza modificare il modello di origine. Illustra come utilizzare il drag and drop per riposizionare singoli elementi all'interno di una vista e come utilizzare i dati del modello per ordinare dinamicamente tutti gli elementi presenti in una vista.
Capitoli del tutorial:
- Una semplice ListView e il delegato
- Trascinamento degli elementi della vista
- Spostamento degli elementi trascinati
- Ordinamento degli elementi
Tutto il codice di questo tutorial è disponibile nella directory examples/quick/tutorials/dynamicview di 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.