July 2016
Intermediate to advanced
300 pages
6h 24m
English
In this example, we will learn how to create sprite animation in QML.
qml.qrc and click the Add | Add Files buttons. Select your sprite sheet image and save the resource file by pressing Ctrl + S.main.qml:import QtQuick 2.3
import QtQuick.Window 2.2
Window {
visible: true
width: 420
height: 380
Rectangle {
anchors.fill: parent
color: "white"
}
}AnimatedSprite object in QML:import QtQuick 2.3 import QtQuick.Window 2.2 Window { visible: true; width: 420; height: 380; Rectangle { anchors.fill: parent; color: ...Read now
Unlock full access