From 1e41e9b77d3cb8bf863c9e3b88273c2977c1ede9 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 15 Sep 2014 14:38:41 +0200 Subject: Add a note about winId() to QOpenGLWidget docs Task-number: QTBUG-40765 Change-Id: I0dbb010bb96c6b41c67392b8846782a354481e5e Reviewed-by: Paul Olav Tvete --- src/widgets/kernel/qopenglwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3