summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2010-01-25 16:30:26 (GMT)
committerJesper Thomschutz <jesper.thomschutz@nokia.com>2010-01-28 15:43:02 (GMT)
commitd2b39e3510e28da04b93cf726ef57e103d680d1d (patch)
treea9c77b38794ce0205e9a0c84fa7b7c5111b79ef2
parent37887e67f49e948794e383fe7123ede406d6b756 (diff)
downloadQt-d2b39e3510e28da04b93cf726ef57e103d680d1d.zip
Qt-d2b39e3510e28da04b93cf726ef57e103d680d1d.tar.gz
Qt-d2b39e3510e28da04b93cf726ef57e103d680d1d.tar.bz2
Updated docs regarding QGLWidget::renderText() limitations.
Reviewed-by: Trust Me
-rw-r--r--src/opengl/qgl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index 3f32cf3..48e43b2 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -4393,6 +4393,13 @@ static void qt_gl_draw_text(QPainter *p, int x, int y, const QString &str,
\note This function temporarily disables depth-testing when the
text is drawn.
+ \note This function can only be used inside a
+ QPainter::beginNativePainting()/QPainter::endNativePainting() block
+ if the default OpenGL paint engine is QPaintEngine::OpenGL. To make
+ QPaintEngine::OpenGL the default GL engine, call
+ QGL::setPreferredPaintEngine(QPaintEngine::OpenGL) before the
+ QApplication constructor.
+
\l{Overpainting Example}{Overpaint} with QPainter::drawText() instead.
*/