Hi,
Can somebody please tell me how to render an image on a QLabel with openGL.
Thanks
Vinod
Hi,
Can somebody please tell me how to render an image on a QLabel with openGL.
Thanks
Vinod
You cannot directly do OpenGL rendering into a QLabel. You should use QGLWidget instead.
You can either:
1. subclass QLabel override paint() event and use qpainter beginNativePainting() to paint using OpenGL, although graphics sub system should support OpenGL
2. use so called off-screen render, then You don't need QGLWidget at all, only valid QGLcontext. In that case You can use anything to generate image, including shaderes etc. Then render that to qimage/qpixmap and place that pix onto QLabel.
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Bookmarks