aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickspritesequence/data/crashonstart.qml
blob: 37bc137133f76eb1c7c2f0b9d3d4dad2c3170761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

//QTBUG-24797
import QtQuick 2.0

Rectangle {
    width: 800
    height: 800

    SpriteSequence {
        id: mysprite
        sprites: [s1,s2]
        scale: 2
        height: 200
        width: 200
        anchors.centerIn: parent
    }

    Component.onCompleted: mysprite.jumpTo("running")
    Sprite {
        id: s1
        name: "standing"
        frameCount: 12
        frameDuration: 80
        source: "squarefacesprite.png"
    }

    Sprite {
        id: s2
        name: "running"
        frameCount: 6
        frameDuration: 80
        source: "squarefacesprite.png"
    }
}