change property of delegate by function
-
Hi I wan to change property of delegate in setWidth().
How to access width of gridViewWidth?function setWidth () {
}
GridView { y : 160 width: 1300 height : 500 clip: true snapMode: ListView.SnapToItem focus: true interactive: true model : test cellWidth: 692; cellHeight: 295 ListModel { id : test } delegate: Item { id: gridViewWidth width : 650 height : 250 Text { x : 20 width : 500 height: 71 color: "black" font.pixelSize: 32 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter text : "test2" elide: Text.ElideRight } } }
Thanks in advance for your answer.