[Qt-interest] QGLWidget with text - zoom in / zoom out
Roland Krause
rokrau at yahoo.com
Mon Jul 27 18:25:46 CEST 2009
> > ... The only way I can think is to
> > increase/decrease the text size based on the zoom, is it right
> > solution? Thank you.
>
> This would be one solution. Another one would be rendering the text as "real" 3D
> objects (in contrast to 2D bitmap letters) which are scaled just like the rest
> of your OpenGL scene.
>
There is a simple solution, render a QString into a QPixmap,
convert to a QImage and use as a OpenGL texture. Works like a charm.
Hth
Roland
More information about the Qt-interest-old
mailing list