import QtQuick 2.0 Slider { property var ratings: [] property int ratingIndex: 0 min: 0 max: 5 value: ratings[ratingIndex] width: editRatingsPanel.width - 30 anchors.horizontalCenter: parent.horizontalCenter sliderWidth: width / 2 onValueChanged: { ratings[ratingIndex] = value } }