ObjectRepeater

ObjectRepeater: ObjectModel [uncreatable]

import Quickshell

A Repeater / for loop / map for non Item derived objects. More

Properties

Detailed Description

🚫
Removed in favor of Instantiator

The ObjectRepeater creates instances of the provided delegate for every entry in the given model, similarly to a Repeater but for non visual types.

Property Details

[default]

delegate: Component

The delegate component to repeat.

The delegate is given the same properties as in a Repeater, except index which is not currently implemented.

If the model is a list<T> or javascript array, a modelData property will be exposed containing the entry from the model. If the model is a QAbstractListModel, the roles from the model will be exposed.

Note: ObjectModel has a single role named modelData for compatibility with normal lists.

model: variant

The model providing data to the ObjectRepeater.

Currently accepted model types are list<T> lists, javascript arrays, and QAbstractListModel derived models, though only one column will be repeated from the latter.

Note: ObjectModel is a QAbstractListModel with a single column.