summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2010-01-25 16:30:26 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2010-01-27 15:30:28 (GMT)
commit38b0bc95448f65404f56c6dfebc54dc5f33c11a4 (patch)
treed0ac0ea0a37134ba0d2bb46715b2b421e555959a /src
parent6a1a7d4ff16b87275a06c83e5316f778c974dba9 (diff)
downloadQt-38b0bc95448f65404f56c6dfebc54dc5f33c11a4.zip
Qt-38b0bc95448f65404f56c6dfebc54dc5f33c11a4.tar.gz
Qt-38b0bc95448f65404f56c6dfebc54dc5f33c11a4.tar.bz2
Updated docs regarding QGLWidget::renderText() limitations.
Reviewed-by: Trust Me
Diffstat (limited to 'src')
-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.
*/