summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qopenglwidget.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-09-15 14:38:41 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-09-18 10:06:49 +0200
commit1e41e9b77d3cb8bf863c9e3b88273c2977c1ede9 (patch)
treea1329e5f267d87b27b12f665e99716814ca483d5 /src/widgets/kernel/qopenglwidget.cpp
parentf72895361d8594469045ef03eec36bb10eae2765 (diff)
Add a note about winId() to QOpenGLWidget docs
Task-number: QTBUG-40765 Change-Id: I0dbb010bb96c6b41c67392b8846782a354481e5e Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/widgets/kernel/qopenglwidget.cpp')
-rw-r--r--src/widgets/kernel/qopenglwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/kernel/qopenglwidget.cpp b/src/widgets/kernel/qopenglwidget.cpp
index 2abddd8941..524597f7a1 100644
--- a/src/widgets/kernel/qopenglwidget.cpp
+++ b/src/widgets/kernel/qopenglwidget.cpp
@@ -244,6 +244,9 @@ QT_BEGIN_NAMESPACE
contents. Omitting the clear call can lead to significant performance drops on
such systems.
+ \note Avoid calling winId() on a QOpenGLWidget. This function triggers the creation of
+ a native window, resulting in reduced performance and possibly rendering glitches.
+
\section1 Multisampling
To enable multisampling, set the number of requested samples on the