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

QOpenGLWidget causes flicker when resizing parent window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.4.2, 5.5.0, 5.9.0 Beta 1, 5.9.7, 5.9.8, 5.13.0, 6.4.2
    • Windows 8.1 x64 Pro
      Qt 5.4.2 built with VS2013 x64
      CPU: Intel core i5 3570
      Graphics: the one integrated with the processor
      RAM: 16 GB

      Putting a QOpenGLWidget inside a QMainWindow as a child causes really noticeable and annoying flicker when re-sizing the QMainWindow through the handles at the borders/corners.

      I thought I was missing something in my program, so I just tried out the included "2D Painting on Native and OpenGL Widgets" which comes with Qt, but the problem is there too.
      If you comment out lines 55, 63 and 70 of "window.cpp" in that example, the flicker completely disappears.

        1. native.avi
          7.91 MB
          Claudio Barutta
        2. open_GL.avi
          7.17 MB
          Claudio Barutta
        3. qtdiag.txt
          4 kB
          Andy Shaw
        4. IMG_0311.jpg
          244 kB
          Konstantin Malanchev
        5. IMG_0336.jpg
          289 kB
          Konstantin Malanchev
        6. main.cpp
          0.5 kB
          Konstantin Malanchev
        7. qopenglwidget.mov
          7.36 MB
          Konstantin Malanchev
        8. qtquickdesigner.mp4
          1.90 MB
          Eike Ziller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            jubba Claudio Barutta
            Votes:
            6 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes