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

Unwanted QGraphicsView updates when using a QOpenGLWidget as viewport

XMLWordPrintable

    • 6c2da36c22e25e626a9812419332ad379e854133

      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).

        1. TestQOpenGLWidget.zip
          1 kB
        2. QTBUG43178.zip
          0.9 kB
        3. QTBUG43178.png
          QTBUG43178.png
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes