C

Qt Quick Ultralite shapes Example

// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial

import QtQuick 2.15

Rectangle {
    id: root
    width: 720
    height: 1280

    property int spacing: 15
    property int entryWidth: (width / 2) - 2 * spacing
    property int entryHeight: (height / 4) - 2 * spacing

    Row {
        anchors.centerIn: parent
        padding: root.spacing
        Column {
            spacing: root.spacing
            FillRules {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
            JoinStyles {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
            CubicCurve {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
            ArcDirection {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
        }
        Column {
            spacing: root.spacing
            CapStyles {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
            QuadraticCurve {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
            LargeSmallArc {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
            ArcRotation {
                contentMargins: root.spacing
                width: root.entryHeight
                height: root.entryHeight
            }
        }
    }
}