Home · All Classes · All Functions · Overviews

QML Path Element Reference

A Path object defines a path for use by PathView. More...

Properties

Detailed Description

A Path is composed of one or more path segments - PathLine, PathQuad, PathCubic.

The spacing of the items along the Path can be adjusted via a PathPercent object.

PathAttribute allows named attributes with values to be defined along the path.

See also PathView, PathAttribute, PathPercent, PathLine, PathQuad, and PathCubic.


Property Documentation

closed : bool

This property holds whether the start and end of the path are identical.


pathElements : list<PathElement>
default

This property holds the objects composing the path.

A path can contain the following path objects:

     PathView {
         anchors.fill: parent; model: MenuModel; delegate: delegate
         path: Path {
             startX: 120; startY: 100
             PathAttribute { name: "scale"; value: 1.0 }
             PathAttribute { name: "opacity"; value: 1.0 }
             PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 }
             PathAttribute { name: "scale"; value: 0.3 }
             PathAttribute { name: "opacity"; value: 0.5 }
             PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 }
         }
     }

startX : real
startY : real

These properties hold the starting position of the path.



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