Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Stoping QProgressBar animation
Forum Updated to NodeBB v4.3 + New Features

Stoping QProgressBar animation

Scheduled Pinned Locked Moved General and Desktop
qprogressbaranimation
6 Posts 2 Posters 5.6k Views 2 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.
  • R Offline
    R Offline
    RiseOfDeath
    wrote on 30 Apr 2015, 08:13 last edited by RiseOfDeath
    #1

    Is posible to stop progressbar animation?

    For example i need to show Filling a glass of water. Then filling is in progress i want to show animation, but then it stoped i want only show amount of water in galss, without progress animation.

    p.s.
    Sry for my english.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      McLion
      wrote on 30 Apr 2015, 13:25 last edited by
      #2

      If minimum and maximum both are set to 0, the bar shows a busy indicator instead of a percentage of steps.
      To have a fix value shown:
      You can specify the minimum and maximum number of steps with setMinimum() and setMaximum. The current number (value) is set with setValue().

      ... copied from here: QProgressBar Class

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RiseOfDeath
        wrote on 1 May 2015, 07:49 last edited by
        #3

        Then i set maximum and minimum to zeros i just have animation without progress indication. I want progress indication without animation.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          McLion
          wrote on 1 May 2015, 13:26 last edited by
          #4

          If you mean the value shown with progress indication then you can easily set it with setValue(). Make sure to have a minimum and a maximum set before which stops the animation and is needed to scale your progress.

          If that's not what you want ... then you need to describe it in more details.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RiseOfDeath
            wrote on 3 May 2015, 23:03 last edited by
            #5

            I want disable (or enable) blinking animation.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              McLion
              wrote on 4 May 2015, 08:11 last edited by
              #6

              What exactly do you mean with blinking?
              If you have set a min and a max value, there is no blinking animation. It just shows the currently set value.
              You may need to look at documentation again: http://doc.qt.io/qt-4.8/qprogressbar.html

              1 Reply Last reply
              0

              2/6

              30 Apr 2015, 13:25

              4 unread
              • Login

              • Login or register to search.
              2 out of 6
              • First post
                2/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved