Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.15.12, 6.5.6, 6.6.3
-
Windows 10
Processor: 13th Gen Intel(R) Core(TM) i5-1345U 1.60 GHz
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:
- This code is working in QGLWidget.
- In Qt 5.15, having QOpenGLWidget as a child and QGLWidget as the viewport works properly.
Solutions Attempted:
- 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.
- 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.