<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AnimatedSprite behaves in wrong way, If we start another animation onCurrentFrameChanged]]></title><description><![CDATA[<p dir="auto">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.</p>
<pre><code> 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()
                }
            }
</code></pre>
<p dir="auto"><em>[Added code tags ~kshegunov]</em><br />
<em>[Moved to  <strong>QML and Qt Quick</strong> ~kshegunov]</em></p>
]]></description><link>https://forum.qt.io/topic/83538/animatedsprite-behaves-in-wrong-way-if-we-start-another-animation-oncurrentframechanged</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 19:52:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/83538.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Sep 2017 10:03:14 GMT</pubDate><ttl>60</ttl></channel></rss>