Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

JoinRole

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

Import Statement: import Felgo 4.0
Since: Felgo 2.18.1
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.


Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded