QOpenGLWidget text rendering
General and Desktop
1
Posts
1
Posters
789
Views
2
Watching
-
I want to draw text labels on QOpenGLWidget. I tried to use QPainter for this task, but had no success - text looks ugly and non antialiased. It is also looks ugly in Qt OpenGL/2dpainting samples. However text rendering is significantly better in QML controls which also use OpenGL backend. Here http://blog.qt.io/blog/2011/07/15/text-rendering-in-the-qml-scene-graph/ I have found a technique that is used in QML. Is there a way to use that technique to draw text in my OpenGL scene rendering?