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. Does SequentialAnimation have a delay?
QtWS25 Last Chance

Does SequentialAnimation have a delay?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 145 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.
  • P Offline
    P Offline
    Puya
    wrote on last edited by
    #1

    Hi I could not find any mention of a delay for SequentialAnimation. But to my eyes it seems that there may be about a few hundred milliseconds of delay from when I call start() on the animation, to when it actually starts. Anyone else has seen this effect before? For example I have this:

    SequentialAnimation {
    	id: flashAnimation
    	
    	alwaysRunToEnd: true
    	
    	PropertyAnimation {
    		target: flash
    		property: "color"
    		from: "transparent"
    		to: "white"
    		easing.type: Easing.OutCubic
    		duration: 1
    	}
    	PropertyAnimation {
    		target: flash
    		property: "color"
    		from: "white"
    		to: "transparent"
    		easing.type: Easing.InQuad
    		duration: 500
    	}
    
    	onStarted: console.log("started")
    }
    

    I can see that started is printed right away when I trigger flashAnimation.start(). But the actual flash happens with maybe 300-500 milliseconds of delay and doesn't happen immediately making the UI less responsive.

    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