Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


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

Import Statement: import Felgo 3.0
Since: Felgo 2.18.1


Inherited By:



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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded