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. How we will show animation ( change the colour ) of indeterminate progressbar in qml ?

How we will show animation ( change the colour ) of indeterminate progressbar in qml ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 429 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.
  • T Offline
    T Offline
    TM9412
    wrote on last edited by TM9412
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You are not starting the animation anywhere. Either start it by calling start(), or use the declarative approach. Here's an example for the former:

      ProgressBar{
        id : p1
        indeterminate: true
        onValueChanged: anim.start()
        ColorAnimation {
          id: anim
          from: "white"
          to: "black"
          duration: 200
        }
      }
      

      (Z(:^

      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