RoleSorter

Sorts rows based on a source model role. More...

Import Statement: import VPlayApps 1.0
Since: V-Play 2.18.1
Inherits:

Sorter

Inherited By:

StringSorter

Properties

Detailed Description

A RoleSorter is a simple Sorter that sorts rows based on a source model role.

In the following example, rows with be sorted by their lastName role :

 SortFilterProxyModel {
    sourceModel: contactModel
    sorters: RoleSorter { roleName: "lastName" }
 }

Property Documentation

roleName : string

This property holds the role name that the sorter is using to query the source model's data when sorting items.


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