C

Qt Quick Ultralite Automotive Cluster Demo

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

import QtQuick 2.15

Image {
    id: arrow

    property real scale: 1
    property int xOrigin
    property int yOrigin

    x: 389
    y: 333

    property real arrowOffset

    transform: [
        Translate {
            y: arrow.arrowOffset
        },
        Scale {
            xScale: 1.1
            yScale: 1.1
        },
        Scale {
            origin.x: xOrigin - arrow.x
            origin.y: yOrigin - arrow.y

            xScale: scale
            yScale: scale
        }
    ]
}