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. How to dsable QProgressBar animation
Forum Updated to NodeBB v4.3 + New Features

How to dsable QProgressBar animation

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 968 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    Hi, is there a way to disable the QProgressBar animation on value= 0?
    alt text
    alt text

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      Is there a reason why you are setting both the min and max to zero?

      1 Reply Last reply
      1
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        Is there is.

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        jsulmJ 1 Reply Last reply
        0
        • M Offline
          M Offline
          mchinand
          wrote on last edited by
          #4

          You only get that effect when both the min and max are zero. Set the max to something else (by default it's 100). You can set it to some other value later if that value makes more sense (e..g, number of bytes of your firmware). Can you post your code that sets up the QProgressBar?

          1 Reply Last reply
          1
          • mrdebugM mrdebug

            Is there is.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @mrdebug To add to @mchinand : what behaviour do you expect if min = max = 0 and you disable this animation? What should the progress bar do/show? This animation is an indication that it is unclear when it will be finished but to make it clear to the user that something is going on it is animated (else user would think it is hanging or is finished).

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            4
            • mrdebugM Offline
              mrdebugM Offline
              mrdebug
              wrote on last edited by
              #6

              Solved width max> 0.
              Thanks.

              Need programmers to hire?
              www.labcsp.com
              www.denisgottardello.it
              GMT+1
              Skype: mrdebug

              1 Reply Last reply
              1

              • Login

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