本页内容

C

PathMove QML Type

移动路径的位置。更多...

Import Statement: import QtQuick
Since: Qt Quick Ultralite 1.8

属性

  • x : real
  • y : real

详细说明

下面的示例创建了一条由两条水平线组成的路径,两条线之间留有空白。这三个线段的宽度均为 100:

import QtQuick
import QtQuick.Shapes
Rectangle {
    width: 300
    height: 300
    Shape {
        ShapePath {
        strokeColor: "black"
            startX: 0; startY: 100
            PathLine { x: 100; y: 100 }
            PathMove { x: 200; y: 100 }
            PathLine { x: 300; y: 100 }
        }
    }
}

注意:要 导入QtQuick.Shapes ,必须将Qul::Shapes 模块链接到您的项目中。有关更多信息,请参阅 Qt Quick Ultralite Shapes QML Types。

另请参阅 Path 、PathQuad 、PathCubic 、PathArc 、PathSvg 以及PathLine 。

属性文档

x : real

y : real

定义要移动到的位置。

在某些 Qt 许可下可用。
了解更多信息。