Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67742

Add pause style to QProgressBar

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.7, 5.10.1
    • None
    • Windows 7

    Description

      QProgressBar seems to use the built-in Windows themes for coloring its QProgressBars, so re-coloring the bar itself is quite complex. However, the Aero-style Windows themes support multiple progressbar states, including Normal, Paused, Stopped, and Indeterminate (https://stackoverflow.com/questions/49867207/how-do-i-change-the-state-of-a-qprogressbar).

      It'd be really useful if this was exposed in the Qt API via `pause()`, `stop()`, and `resume()` functions, plus associated signals. This already seems to be implemented in QWinTaskbarProgress, so I think most of the code is already there... just needs to be added to QProgressBar. I'd do it myself, but I got lost in the many layers of abstraction in QProgressBar's styling.

      I cross-posted this as a question on StackOverflow: https://stackoverflow.com/questions/49867207/how-do-i-change-the-state-of-a-qprogressbar

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              phlucious Evon Silvia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes