Squares instead of letters when using QPainter::renderText on a texture placed in QOpenGLWidget
Unsolved
General and Desktop
-
There is a QOpenGLWidget on which a texture is placed using glTexImage2D. I'm trying to draw text on this texture using QPainter.DrawText, but it doesn't work. I get squares of all letters. But if you increase the font to 44, the text is displayed correctly. Also, if you remove the texture mapping via glTexImage2D, the text is displayed correctly. I tried a lot of things, nothing helped… Qt version 6.1.2
-