QOpenGLContext in PyQT with Multiprocessing

46 Views Asked by At

I have have hit a roadblock as my mix of knowledge of Python, OpenGL and googling is not enough to find a solution to the following problem.

I need to use multiprocessing (or a spawn instance of Python) to create a QOpenGLTexture. Then share it back to the main application using a shareContext/textureId.

If I work with threads I can easily do it, as I can just share the QOpenGLContext between threads. How do I share a QOpenGLContext (pointer?) to an external running application in Python?

I tried using threads with AA_ShareOpenGLContexts attribute on the application and works good. Once is a different application I don't know how to share a context

0

There are 0 best solutions below