Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to render text in OpenGL context
limy last edited by
I want to render a text in OpenGL context with painter, but from the document, qt will disable depth test inside the beginNativePainting and endNativePainting pair, so the text in the back of object will be painted in the front of the object, like that:
My opengl widget is inherited from QOpenGLWidget, please help me how to draw a text in this opengl contect.