PDA

View Full Version : QOpenGLWidget and text rendering



Kozersky
27th September 2015, 10:48
Hi,

the problem is as follows: I need to render text on QOpenGLWidget. I was using QPainter to do so, but as I see, it lives by itself, e.g. resizeGL call does not affect QPainter rendered text position, also QPainter coordinates are different from defined in glOrtho. In QGLWidget there was a nice function renderText, obviously it is absent in QOpenGLWidget. Any other alternatives?

Cheers.

ywzjackal
12th November 2015, 14:34
look at http://stackoverflow.com/questions/3514935/3d-text-on-qglwidget-in-qt-4-6-3/3516254#3516254

but i can not find a way to fill text body. can any body tell me?

thks.