diff options
| author | Mitch Curtis <mitch.curtis@qt.io> | 2024-07-09 16:01:21 +0800 |
|---|---|---|
| committer | Mitch Curtis <mitch.curtis@qt.io> | 2025-03-04 14:30:00 +0800 |
| commit | e30b80657e2d90e74f1f36acf4d08fe78cf226a4 (patch) | |
| tree | 8d447b1657ed18a06b044cc7d2cfa0c88900ef62 /src/quickshapes/designhelpers/doc/snippets/rectangleshape.qml | |
| parent | e31befb14e4c750ca2d52e7c331b07815f8bda4b (diff) | |
Add RectangleShape to QtQuick.Shapes.DesignHelpers
[ChangeLog] Added new QtQuick.Shapes.DesignHelpers module.
[ChangeLog][QtQuick.Shapes.DesignHelpers] Added RectangleShape.
Fixes: QDS-13283
Change-Id: I736e4062d5b618495cce336edb77f7b7915b7d62
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/quickshapes/designhelpers/doc/snippets/rectangleshape.qml')
| -rw-r--r-- | src/quickshapes/designhelpers/doc/snippets/rectangleshape.qml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/quickshapes/designhelpers/doc/snippets/rectangleshape.qml b/src/quickshapes/designhelpers/doc/snippets/rectangleshape.qml new file mode 100644 index 0000000000..8183a68b2e --- /dev/null +++ b/src/quickshapes/designhelpers/doc/snippets/rectangleshape.qml @@ -0,0 +1,22 @@ +// Copyright (C) 2025 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick +import QtQuick.Shapes + +Window { + width: rectangleShape.width + 10 + height: rectangleShape.height + 10 + visible: true + flags: Qt.FramelessWindowHint + +//! [rectangleShape] + RectangleShape { + id: rectangleShape + anchors.centerIn: parent + topLeftRadius: 0 + bottomRightBevel: true + joinStyle: ShapePath.MiterJoin + } +//! [rectangleShape] +} |
