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

QProgressBar::setValue and some other widgets do repaint() which could be problematic with QOpenGLWidget and vsync

    XMLWordPrintable

    Details

    • Commits:
      1b61390856ce336c82f7b99def574775893bf4f2

      Description

      Simple code like this may take a lot of time (1650 ms) to complete if QOpenGLWidget is in the same window and vsync is enabled (as opposed to ca 190ms without):

              for (int i = 0; i <= 1000; ++i)
                  progressbar->setValue(i);
      

      Perhaps QProgressBar::setValue could do update() instead of repaint() if it is on the same window with QOpenGLWidget, or have a flag that would choose which one to use.

        Attachments

        1. qtbug49655.zip
          1 kB
          Friedemann Kleint
        2. qtbug49655.zip
          1 kB
          Joni Poikelin

          Issue Links

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

            Activity

              People

              • Assignee:
                lagocs Laszlo Agocs
                Reporter:
                poikelin Joni Poikelin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes