In questa pagina

Sorter QML Type

Tipo di base astratto che fornisce funzionalità comuni agli strumenti di ordinamento. Maggiori informazioni...

Import Statement: import QtQml.Models
Since: Qt 6.10
Inherits:

QtObject

Inherited By:

FunctionSorter, RoleSorter, and StringSorter

Status: Technology preview

Questo tipo è in anteprima tecnologica ed è soggetto a modifiche.

Proprietà

Descrizione dettagliata

Sorter fornisce un insieme di proprietà comuni a tutti i sortatori da cui derivano.

Documentazione delle proprietà

column : int

Questa proprietà indica la colonna a cui viene applicato questo filtro.

Il valore predefinito è 0.

enabled : bool

Questa proprietà consente a SortFilterProxyModel di tenere conto di questo ordinatore durante l'ordinamento dei dati del modello.

Il valore predefinito è true.

priority : int

Questa proprietà indica la priorità assegnata a questo ordinatore rispetto agli altri. Un valore più basso corrisponde a una priorità più alta, mentre un valore più alto corrisponde a una priorità più bassa.

Il valore predefinito è -1.

sortOrder : Qt::SortOrder

Questa proprietà contiene l'ordine utilizzato da SortFilterProxyModel per ordinare i dati del modello.

Il valore predefinito è Qt::AscendingOrder.

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