blob: ac7413b5962ed5ec22763021d91e0560899c8409 (
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 10
if (currentFrame === 10)
pause();
}
}
}
|