diff --git a/widgets/widget.cpp b/widgets/widget.cpp index 834c33457..8225eb087 100644 --- a/widgets/widget.cpp +++ b/widgets/widget.cpp @@ -218,6 +218,10 @@ void Widget::setGeometry(const QRectF& geometry) if (layout()) { layout()->setGeometry(boundingRect()); } + + if (managingLayout()) { + managingLayout()->invalidate(); + } } setPos(geometry.topLeft());