Stoping QProgressBar animation

  • 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.

    Sry for my english.

  • 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

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

  • 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.

  • I want disable (or enable) blinking animation.

  • 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:

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.