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

QOpenGLWidget content not visible, only black renders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.4.2
    • GUI: OpenGL
    • None
    • Kubuntu 15.10
      nVidia GeForce 520M
      nVidia drivers version 358.16
      KDE Frameworks 5.15.0

      I have a (subclass of a) QOpenGLWidget, with a (subclass of a) QMainWindow as its parent. When I run my application, I should be seeing content rendered onto this widget. However, I only see black, as if the content failed to render. I don't know if glClear is succeeding or not.

      I also get this error a lot:

      QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined

      The source file for which this is relevant is here https://github.com/JesseTG/BALLS/blob/master/BALLS/BALLS/ui/BallsCanvas.cpp

      For now, I can work around this by passing -style=fusion as an argument to my program, but I'd rather not make other people do this.

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

            sletta Gunnar Sletta
            JesseTG Jesse Talavera-Greenberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes