1 2 3 4 5 6 7 8 9
import QtQuick ListView { model: ListModel {} delegate: Text { text: model.text color: index % 2 ? "red" : "blue" } }