Important: Please read the Qt Code of Conduct -

Using Fonts in OpenGL

  • Hi!

    It´s possible draw a text in a OpenGL rendering context using the QFont Object?
    Anyone there have an example of how can i do this?

    The idea is just to have some text on the screen while i render some objects.


  • If that is sufficient, performance wise, draw text in a QPixmap and use bindTexture() to use it in your GL context.

Log in to reply