[Qt-interest] Drawing text over a QGLWidget
Alan Norton
alan at ucar.edu
Wed Jan 27 17:43:10 CET 2010
I would like to draw text at specified coordinates over an image
rendered in a QGLWidget. This is in QT4.6.
I want the text and the image to be visible at the same time.
I tried using QPainter::drawText() in the paintGL() method, and in the
PaintEvent() method. In the first case, the entire GL scene was
overwritten. In the second case, the painting never stops, flickering
all the time. Surely there is a "right" way to do this, but I couldn't
see any examples of this. Any ideas are welcome.
Thanks,
-Alan Norton
More information about the Qt-interest-old
mailing list