Home · All Classes · All Functions · Overviews

QML PathPercent Element Reference

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

Detailed Description

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.

 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 }
 }

 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.



Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.7.0