[Interest] Allow external library to generate OpenGL buffers in context of QOpenGLWidget

Pieter Barendrecht pjbarendrecht at gmail.com
Thu Jul 11 09:56:34 CEST 2019

Perhaps someone from KDAB has experience with something like this?

On Thu, 4 Jul 2019 at 11:17, Pieter Barendrecht <pjbarendrecht at gmail.com>

> Hi all,
> I have a Qt application with a QOpenGLWidget for displaying 3D meshes. Now
> I'd like to use an external library (OpenSubdiv in this case, see e.g.
> http://graphics.pixar.com/opensubdiv/docs/api_overview.html) to generate
> additional OpenGL buffers, which I can then bind and use in the context of
> my QOpenGLWidget. Currently the application segfaults when OpenSubdiv tries
> to generate these buffers — it does not seem to have a valid OpenGL
> context. I've read some documentation on e.g. Qt::AA_ShareOpenGLContexts,
> but can't find anything related to sharing a context with something not
> directly Qt-related. Any thoughts?
> Best,
> Pieter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190711/cee948e8/attachment.html>

More information about the Interest mailing list