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
2 Posts 2 Posters 470 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.
  • J Offline
    J Offline
    JaatVishal
    wrote on last edited by
    #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()
    }
    }

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Duplicate

      Closing this one.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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