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

QGraphicsView displays white screen when using QOpengGLWidget as viewport and also having a QOpenGLWidget in a QGraphicsProxyWidget

    XMLWordPrintable

Details

    • All

    Description

      Setting QOpenGLWidget as the viewport leads to a white screen issue. QGraphicsView has a child that includes QOpenGLWidget, while its parent is also set as a QOpenGLWidget viewport.

      Observation:

      1. This code is working in QGLWidget.
      2. In Qt 5.15, having QOpenGLWidget  as a child and QGLWidget as the viewport works properly.

      Solutions Attempted:

      1. Qt::AA_ShareOpenGLContexts: This option allows for resource sharing between OpenGL contexts utilized by classes like QOpenGLWidget and QQuickWidget. It enables sharing OpenGL resources, such as textures, among different instances of QOpenGLWidget belonging to various top-level windows. Result: Not working.
      1. void QOpenGLContext::setShareContext(QOpenGLContext {}shareContext): This function allows the context to share textures, shaders, and other OpenGL resources with shareContext. It is essential to call create before this takes effect. *Result: Not working.

      Attachments

        1. opengl.zip
          20.97 MB
        2. stereoqopenglwidget.zip
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            manjunath Manjunath AV
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes