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

Indeterminate progress bars don't work with QWindowsVistaStyle

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.6.2
    • Fix Version/s: 4.8.0
    • Component/s: GUI: Look'n'Feel
    • Labels:
      None
    • Environment:
      Windows
    • Commits:
      05e46b93ccb2334ec3722cf1205058f778d11458

      Description

      Setting a QProgressBar (or QProgressDialog) to be indeterminate by setting the minimum and maximum range to be zero does not work when the bar is drawn with QWindowsVistaStyle. It works fine in the other styles I've tried. See the attached test case 'indeterminate-progress-bar-test.zip'.

      The bug is in QWindowsVistaStyle::drawControl. It requires that the progress bar's current value is strictly less than the maximum before it will set up the animation, but this can't be true for indeterminate progress bars where the maximum has to be zero. I've attached a simple patch that fixes the bug.

        Attachments

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

          Activity

            People

            • Assignee:
              bachewii Jens
              Reporter:
              jlarcombe James Larcombe
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes