blob: 6ed305db6095176e0b09bc4b5e9ebca2c376a494 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
Rectangle {
id: root
width: 200
height: 200
visible: true
property alias frameAnimation: frameAnimation
FrameAnimation {
id: frameAnimation
onTriggered: {
// Pause when we reach the frame 3
if (currentFrame === 3)
pause();
}
}
}
|