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

QOpenGLWidget causes flicker when resizing parent window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • 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

    Description

      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.

      Attachments

        1. IMG_0311.jpg
          IMG_0311.jpg
          244 kB
        2. IMG_0336.jpg
          IMG_0336.jpg
          289 kB
        3. main.cpp
          0.5 kB
        4. native.avi
          7.91 MB
        5. open_GL.avi
          7.17 MB
        6. qopenglwidget.mov
          7.36 MB
        7. qtdiag.txt
          4 kB
        8. qtquickdesigner.mp4
          1.90 MB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: