blob: 2b0cd7f3a7df39fa6965991cad04aa05f69de616 (
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 WITH Qt-GPL-exception-1.0
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();
}
}
}
|