Using QtQuick 2.12 QML in Qt 5.4
-
I have Qt version 5.4 , I need do Sprite sheet animation in this version . Since the QML module AnimatedSprite QML Type is available only in QtQuick 2.12 , and Qt5.4 comes with QtQuick 2.4.
How can I make QtQuick 2.12 available in Qt5.4 ?
Also I couldn't find the repository for QtQtuick2 in http://code.qt.io/cgit.
Thanks,
Thoufiq. -
@TopNotch said in Using QtQuick 2.12 QML in Qt 5.4:
How can I make QtQuick 2.12 available in Qt5.4 ?
You can't, with Qt 5.4.x only QtQuick 2.0 to QtQuick 2.4 is available.
QtQuick 2.12 is available with Qt 5.12.x and upper.In general QtQuick 2.x is available with Qt 5.x
-
@TopNotch I don't know, I don't have experience with this QML components. Do you have to use Qt 5.4?
I've seen SpriteSequence is avialable starting with Qt 5.7, but many animation features have been added with Qt 5.10 (cf. https://www.kdab.com/new-in-qt-5-10-texture-based-animations-in-qt-3d/)
-
@TopNotch
The AnimatedSprite QML Type was already introduced in Qt 5.0: https://doc.qt.io/qt-5/whatsnew50.html#animationsTry using
import QtQuick 2.4
and you should use it.Take care about some function, signals or slots, some are introduced later: finished()