diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2010-01-25 16:30:26 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2010-01-25 16:31:39 (GMT) |
commit | 8ef52111099e1a588d872305d07f0f9e514fe2e3 (patch) | |
tree | 212bd02751c7855aeb229c099d8889a9111a6e9c /src/opengl | |
parent | a85f708449a5fb61740ec12abd4cb9df3a5265ad (diff) | |
download | Qt-8ef52111099e1a588d872305d07f0f9e514fe2e3.zip Qt-8ef52111099e1a588d872305d07f0f9e514fe2e3.tar.gz Qt-8ef52111099e1a588d872305d07f0f9e514fe2e3.tar.bz2 |
Updated docs regarding QGLWidget::renderText() limitations.
Reviewed-by: Trust Me
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl.cpp | 7 |
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. */ |