If you create the widget, call its method to retrieve the context, then call setShareContext() with that pointer using your common context, that doesn't work?
If you create the widget, call its method to retrieve the context, then call setShareContext() with that pointer using your common context, that doesn't work?
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Don't know; I don't write explicit OpenGL code that much. I think your only option is to look at the implementation of QOpenGLWidget and then derive your own version from QWidget that lets you set the context externally instead of creating it by default. With luck you may be able to reuse a lot of the source code.But this sounds like a hack!
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks