Getting QOpenGLTexture object from QOpenGLFramebufferObject
I am using QOpenGLTexture through my project to encapsulate my OpenGL textures. When using QOpenGLFramebufferObject I can only mange to get a bare GLuint handle to a texture by texture() or takeTexture(). But having just this handle is of course not very object oriented or comfortable to work with.
Is there any way how I can get back the texture of the framebuffer as an QOpenGLTexture object? Or is there a possibility to create a new QOpenGLTexture from the GLuint handle?
Thank you for your answers in advance!