summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick3d/quick3dnodeinstantiator/data/stringModel.qml
blob: 5aa4d399af7a3e07bae5ac640e25761dec006d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import QtQml 2.1
import Qt3D.Core 2.0

Entity {
    NodeInstantiator {
        model: ["alpha", "beta", "gamma", "delta"]
        delegate: Entity {
            property bool success: index == 1 ? datum.length == 4 : datum.length == 5
            property string datum: modelData
        }
    }
}