diff --git a/src/widgets/kernel/qwidget_qpa.cpp b/src/widgets/kernel/qwidget_qpa.cpp index aec5fcf0ca..2aee80ade4 100644 --- a/src/widgets/kernel/qwidget_qpa.cpp +++ b/src/widgets/kernel/qwidget_qpa.cpp @@ -737,7 +737,9 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) if (needsShow) show_sys(); - } else { + } + + if (!q->isWindow()) { if (isMove && !isResize) moveRect(QRect(oldPos, olds), x - oldPos.x(), y - oldPos.y()); else