Sorter

Base type for the SortFilterProxyModel sorters. More...

Import Statement: import VPlayApps 1.0
Since: V-Play 2.18.1
Inherited By:

ExpressionSorter and RoleSorter

Properties

Detailed Description

The Sorter type cannot be used directly in a QML file. It exists to provide a set of common properties and methods, available across all the other sorters types that inherit from it. Attempting to use the Sorter type directly will result in an error.

Property Documentation

enabled : bool

This property holds whether the sorter is enabled. A disabled sorter will not change the order of the rows.

By default, sorters are enabled.


sortOrder : Qt::SortOrder

This property holds the sort order of this sorter.

Constant Description
Qt.AscendingOrder The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales
Qt.DescendingOrder The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales

By default, sorting is in ascending order.


Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support