Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QtQuick 2.12 QML in Qt 5.4
Forum Updated to NodeBB v4.3 + New Features

Using QtQuick 2.12 QML in Qt 5.4

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 609 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TopNotch
    wrote on last edited by
    #1

    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.

    KroMignonK 1 Reply Last reply
    0
    • T TopNotch

      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.

      KroMignonK Offline
      KroMignonK Offline
      KroMignon
      wrote on last edited by
      #2

      @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

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      1 Reply Last reply
      1
      • T Offline
        T Offline
        TopNotch
        wrote on last edited by
        #3

        So is there any other QML Type available in Qt5.4 Where I can use it to do Sprite Sheet Animation ?

        KroMignonK beeckscheB 2 Replies Last reply
        0
        • T TopNotch

          So is there any other QML Type available in Qt5.4 Where I can use it to do Sprite Sheet Animation ?

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @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/)

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          1 Reply Last reply
          0
          • T TopNotch

            So is there any other QML Type available in Qt5.4 Where I can use it to do Sprite Sheet Animation ?

            beeckscheB Offline
            beeckscheB Offline
            beecksche
            wrote on last edited by beecksche
            #5

            @TopNotch
            The AnimatedSprite QML Type was already introduced in Qt 5.0: https://doc.qt.io/qt-5/whatsnew50.html#animations

            Try using import QtQuick 2.4 and you should use it.

            Take care about some function, signals or slots, some are introduced later: finished()

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved