File: stringModel.qml

package info (click to toggle)
qt6-3d 6.9.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 191,136 kB
  • sloc: cpp: 395,179; ansic: 11,426; python: 467; objc: 260; javascript: 158; sh: 132; xml: 38; makefile: 20
file content (12 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (9)
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
        }
    }
}