Unsolved scaling currentItem in PathView
-
I have a set of data coming from DataModel, I am displaying on PathView as I was required with closed path. I want the currentItem to be always at the center with increased size. Also spacing between each item should be equal.
If PathAttribute is given:
path: Path {
startX: 0
startY: root.height * 0.5PathLine { x: root.width * 0 y: root.height * 0.5 } PathAttribute { name: "itemscale"; value: 1.0 } PathLine { x: root.width * 0.25 y: root.height * 0.5 } PathAttribute { name: "itemscale"; value: 0.75 } PathLine { x: root.width * 0.5 y: root.height * 0.5 } PathAttribute { name: "itemscale"; value: 1.65 } PathLine { x: root.width * 0.75 y: root.height * 0.5 } PathAttribute { name: "itemscale"; value: 0.8 } PathLine { x: root.width y: root.height * 0.5 } PathAttribute { name: "itemscale"; value: 1.0 }
This code snippet gives currentItem at center but scaling is slightly present with previous and next item too. Also spacing between each item are not same.
It would be a greater help if someone can explain where I am going wrong to achieve this.
Thanks in advance