سلام
با تعریف یک property در بدنه repeater به صورت زیر مشکل حل شد :
Repeater {
id: repeater
model: 5
Rectangle
{
color : "transparent"
id : myRectRepeater
property int radius: 15
gradient: mygradient
width: radius
property var myColor: Global.Theme? "red" : "blue"
Button {
id:control
x: 20
y : -25
Text {
id : saveId// saveId
text: qsTr(Global.textArray[index])
font : myFont
color: myColor
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
}
}
onClicked: {
}
}
}
}
for(var idx1 =0; idx1 < 5; idx1++)
{
repeater.itemAt(idx1).myColor = Global.fontColor_gray ;
repeater.itemAt(idx1).mygradient = myTheme
}