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

Unwanted QGraphicsView updates when using a QOpenGLWidget as viewport

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: 5.4.1
    • Labels:
      None
    • Environment:
      All
    • Commits:
      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

          For Gerrit Dashboard: QTBUG-43178
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                lagocs Laszlo Agocs
                Reporter:
                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