How to share the same OpenGL context between multiple QQuickWindow instances ?



  • It seems to be default setting in Qt 5.4. The multiple QQuickWindow instances are sharing the same OpenGL context. But when upgrade to Qt 5.7, they are using different opengl context.
    In Qt Document:
    http://doc.qt.io/qt-5/qquickwindow.html#openglContextCreated
    It states "Some implementations will share the same OpenGL context between multiple QQuickWindow instances. " But it does not mention how to guarantee this setting.
    Did I misunderstanding something?
    Thanks!



  • Hi! I can't say for sure but my guess is that the context will be shared on all platforms that allow that, so all desktop platforms. Maybe it's just not technically possible on e.g. Android.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.