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



  • 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()
    }
    }


  • Lifetime Qt Champion

    Hi,

    Please don't post the exact same question in multiple sub-forum, one is enough.

    Duplicate

    Closing this one.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.