Column {
id:column
spacing: 10
width: parent.width
Repeater{
model:5
Row {
leftPadding:17
topPadding:10
spacing: 10
Image {
id:img
height: 50
width: 50
source:"icon.png"
}
Text {
text:"User_name"
topPadding:12
}
Rectangle{
height: 40
width:40
color: "#333333"
Layout.alignment: Qt.AlignRight
}
}
}
}
I have Used Layout.alignment: Qt.AlignRight to show the rectangle to the right, But its not working. I don't understand why It is not working, I have also tried Layout.fillWidth: true inside an Item but still not working