C
Qt Quick Ultralite Motorcycle Cluster Demo
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial import QtQuick 2.0 import QtQuickUltralite.Extras 2.0 ColorizedImage { id: root property real targetOpacity property alias runAnimation: blinkingAnimation.running onTargetOpacityChanged: { if(!runAnimation) { opacity = targetOpacity } } SequentialAnimation { id: blinkingAnimation loops: Animation.Infinite alwaysRunToEnd: true NumberAnimation { target: root property: "opacity" to: 0 duration: 150 easing.type: Easing.OutQuad } PauseAnimation { duration: 100 } NumberAnimation { target: root property: "opacity" to: targetOpacity duration: 150 easing.type: Easing.OutQuad } PauseAnimation { duration: 100 } } }