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

QProgressDialog's QProgressBar might not update if setLabelText() is called too frequently on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      On macOS, when QProgressDialog's setLabelText() method is called too frequently, the progress bar might not update at all (until the dialog loses or regains focus).

      Tested on a VirtualBox installation of macOS Big Sur 11.5.1, with latest Xcode and Qt 5.15.2. The same bug is present on macOS 10.15.
      The example tries to update the dialog every 1ms. The one without setLabelText() calls work properly, while the one with them updates only the label but not the bar.

      The modality of the dialog does not affect the issue. I didn't bother to implement the cancel button for the example

      The same example works fine on Windows (and Ubuntu iirc).

        Attachments

        1. QtBugTest.png
          QtBugTest.png
          1.35 MB
        2. QtBugTest2.zip
          9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            zhupengfei Zhu Peng Fei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes