JoinRole QML Type

a role made from concatenating other roles. More...

Import Statement: import SortFilterProxyModel .
Inherits:

SingleRole

Properties

Detailed Description

A JoinRole is a simple ProxyRole that concatenates other roles.

In the following example, the fullName role is computed by the concatenation of the firstName role and the lastName role separated by a space :

SortFilterProxyModel {
   sourceModel: contactModel
   proxyRoles: JoinRole {
       name: "fullName"
       roleNames: ["firstName", "lastName"]
  }
}

Property Documentation

name : string

This property holds the role name of the proxy role.


roleNames : list<string>

This property holds the role names that are joined by this role.


separator : string

This property holds the separator that is used to join the roles specified in roleNames.

By default, it's a space.