IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

PathPolyline QML Type

Defines a polyline through a list of coordinates.

This type was introduced in QtQuick 2.14.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

PathPolyline QML Type

  • Import Statement: import QtQuick

  • Since:: QtQuick 2.14

  • Group: PathPolyline is part of qtquick-animation-paths

Detailed Description

The example below creates a triangular path consisting of four vertices on the edge of the containing Shape's bounding box. Through the containing shape's scale property, the path will be rescaled together with its containing shape.

 
Sélectionnez
PathPolyline {
    id: ppl
    path: [ Qt.point(0.0, 0.0),
            Qt.point(1.0, 0.0),
            Qt.point(0.5, 1.0),
            Qt.point(0.0, 0.0)
          ]
}

See Also

Property Documentation

 

path : list<point>

This property defines the vertices of the polyline.

It can be a JS array of points constructed with Qt.point(), a QList or QVector of QPointF, or QPolygonF. If you are binding this to a custom property in some C++ object, QPolygonF is the most appropriate type to use.

[read-only] start : point

This read-only property contains the beginning of the polyline.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+