Sur cette page

PathLine QML Type

Définit une ligne droite. Plus d'informations...

Import Statement: import QtQuick

Propriétés

Description détaillée

L'exemple ci-dessous crée un chemin constitué d'une ligne droite allant de 0,100 à 200,100 :

Path {
    startX: 0; startY: 100
    PathLine { x: 200; y: 100 }
}

Voir aussi Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg, PathMove, PathPolyline, et PathRectangle.

Documentation sur les propriétés

relativeX : real

relativeY : real

Définit le point final de la ligne par rapport à son début.

Si une position finale relative et une position finale absolue sont spécifiées pour un même axe, c'est la position relative qui sera utilisée.

Les positions relatives et absolues peuvent être mélangées ; par exemple, il est possible de définir une position relative x et une position absolue y.

Voir également x et y.

x : real

y : real

Définit le point final de la ligne.

Voir également relativeX et relativeY.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.