Qt 4.8
PathPercent Class Reference

The PathPercent manipulates the way a path is interpreted. More...

Detailed Description

The PathPercent manipulates the way a path is interpreted.

Since
4.7

PathPercent allows you to manipulate the spacing between items on a PathView's path. You can use it to bunch together items on part of the path, and spread them out on other parts of the path.

The examples below show the normal distrubution of items along a path compared to a distribution which places 50% of the items along the PathLine section of the path.

declarative-nopercent.png
// ...
Path {
startX: 20; startY: 0
PathQuad { x: 50; y: 80; controlX: 0; controlY: 80 }
PathLine { x: 150; y: 80 }
PathQuad { x: 180; y: 0; controlX: 200; controlY: 80 }
}
}
declarative-percent.png
// ...
Path {
startX: 20; startY: 0
PathQuad { x: 50; y: 80; controlX: 0; controlY: 80 }
PathPercent { value: 0.25 }
PathLine { x: 150; y: 80 }
PathPercent { value: 0.75 }
PathQuad { x: 180; y: 0; controlX: 200; controlY: 80 }
PathPercent { value: 1 }
}
}
See also
Path

The documentation for this class was generated from the following file: