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

Mainwindow not repainting when QOpenGLWidget is present and QSurfaceFormat::setSamples() is set higher than what machine supports

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.2
    • GUI: OpenGL
    • None
    • Linux/Wayland, Linux/X11

      I've attached a minimal example with a MainWindow containing a QOpenGLWIdget. The whole MainWindow is not repainting when QSurfaceFormat::setSamples() is set higher than what machine supports.

      Steps to reproduce (see Attached project):

      Build a Qt Widget application with a QOpenGLWidget and set QSurfaceFormat::setSamples() e.g. to 16

      Now run the binary on a second system where the graphics only allow 8 samples max.
      (Reported by glGetIntegerv(GL_MAX_FRAMEBUFFER_SAMPLES, &n))

      The result is, that the UI will not update correctly when e.g. a Tab is switched.
      Moving another window in front of the UI will trigger the redraw of the window.

      The sample settings will return the max possible
      glGetIntegerv(GL_SAMPLE_BUFFERS, &n); returns 8 and not the unsupported 16
      however only when setting it to 8 on compile time the issue can be resolved.

      Directly comping on the second machine will not reproduce the issue, at least I could not reproduce it this way.

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

            lagocs Laszlo Agocs
            gde gde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes