diff options
author | Eskil Abrahamsen Blomfeldt <[email protected]> | 2024-01-02 13:12:49 +0100 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <[email protected]> | 2024-01-06 11:19:17 +0100 |
commit | 5e8314f472df4647d1d850e4cacef7e5c9162b1a (patch) | |
tree | b836375bee1c512edfd152473212b0c05e0546df /examples/quick/shapes/quadraticCurve.qml | |
parent | dfe316ad0bacca691d14c7ddcb0d109b66c45923 (diff) |
Move Qt Quick Shapes example
Usually, we have separate top-level example directories for
different modules, but since Qt Quick Shapes only had a single
example, it was categorized under examples/quick.
We now plan to add more, so to prepare for that, this sets up
the normal structure with an examples/quickshapes directory.
Pick-to: 6.7
Change-Id: I50016358b674c18bb2930459d4e0111862ddcedb
Reviewed-by: Eirik Aavitsland <[email protected]>
Diffstat (limited to 'examples/quick/shapes/quadraticCurve.qml')
-rw-r--r-- | examples/quick/shapes/quadraticCurve.qml | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/examples/quick/shapes/quadraticCurve.qml b/examples/quick/shapes/quadraticCurve.qml deleted file mode 100644 index d626d2693a..0000000000 --- a/examples/quick/shapes/quadraticCurve.qml +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick -import QtQuick.Shapes - -Rectangle { - color: "lightGray" - width: 256 - height: 256 - - Item { - width: 200 - height: 100 - anchors.centerIn: parent - - Shape { - id: shape - anchors.fill: parent - - ShapePath { - strokeWidth: 4 - strokeColor: "black" - fillColor: "transparent" - - startX: 50 - startY: 50 - PathQuad { - x: 150 - y: 50 - controlX: cp.x - controlY: cp.y - } - } - } - - Rectangle { - id: cp - color: "red" - width: 10 - height: 10 - SequentialAnimation on x { - loops: Animation.Infinite - NumberAnimation { - from: 0 - to: shape.width - cp.width - duration: 5000 - } - NumberAnimation { - from: shape.width - cp.width - to: 0 - duration: 5000 - } - } - } - } -} |