From b4491c358ddc4d87258d92bc7fc99832bc3cd526 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Thu, 29 Jan 2015 17:06:21 +0100 Subject: [PATCH] Document that setGraphicsEffect is not suitable for GL widgets Task-number: QTBUG-44188 Change-Id: Ie5bea14ffb804124421e97e5f49975ac9ad6d838 Reviewed-by: Shawn Rutledge --- src/widgets/kernel/qwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 27d45ccea6..68715413d1 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -5227,6 +5227,9 @@ QGraphicsEffect *QWidget::graphicsEffect() const \note This function will apply the effect on itself and all its children. + \note Graphics effects are not supported for OpenGL-based widgets, such as QGLWidget, + QOpenGLWidget and QQuickWidget. + \since 4.6 \sa graphicsEffect()