Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. AnimatedSprite behaves in wrong way, If we start another animation onCurrentFrameChanged
Forum Updated to NodeBB v4.3 + New Features

AnimatedSprite behaves in wrong way, If we start another animation onCurrentFrameChanged

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 453 Views
  • 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.
  • J Offline
    J Offline
    JaatVishal
    wrote on last edited by kshegunov
    #1

    I want to start another animation onCurrentFrameChaged() of AnimatedSprite and my AnimatedSprite has total frame count as 130, So I am starting another number animation, When currenFrame is 100, and that animation stops after AnimatedSprite, but when the second animation stopped AnimatedSprite area shows wrong frame on screen.

     onCurrentFrameChanged: {
                    console.log("current frame Changed : current frame", sprite.currentFrame)
                    //frameChanged()
                    if (sprite.currentFrame === 100)
                    {
                        idLeftDrawer.leftDrawer.animStart()
                        idRightDrawer.rightDrawer.animStart()
                    }
                    if (sprite.currentFrame === 120)
                    {
                        idHeaderRect.headerRect.animStart()
                        //idHomeScreenGrid.homeGridRect.animStart()
                        idHomeScreenGrid.homeGridRect.animStart()
                    }
                }
    

    [Added code tags ~kshegunov]
    [Moved to QML and Qt Quick ~kshegunov]

    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