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

Unwanted QGraphicsView updates when using a QOpenGLWidget as viewport

    XMLWordPrintable

Details

    • 6c2da36c22e25e626a9812419332ad379e854133

    Description

      In a QGraphicsViews based application, I tried to replace the QGLWidget viewport with the new QOpenGLWidget. I noticed that the view was performing updates all the time. I finally find out that the source of the unnecessary redraws was the update of the status bar of the main window.

      I prepared a sample project which reproduces the issue : after each view redraw, a connection is used to update a counter in the status bar ; with QOpenGLWidget you can notice that the counter will keep increasing, whereas it won't increase when using a QGLWidget or QWidget based viewport (neither with 5.4 or previous versions).

      Attachments

        1. QTBUG43178.png
          QTBUG43178.png
          11 kB
        2. QTBUG43178.zip
          0.9 kB
        3. TestQOpenGLWidget.zip
          1 kB

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              remi.faitout Remi Faitout
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes