JoinRole

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

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

ProxyRole

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

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.


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