diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 54808e9f136..47a801b7251 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -2123,7 +2123,7 @@ void QWidgetPrivate::clipToEffectiveMask(QRegion ®ion) const QPoint offset; #if QT_CONFIG(graphicseffect) - if (graphicsEffect) { + if (graphicsEffect && !w->isWindow()) { w = q->parentWidget(); offset -= data.crect.topLeft(); }